// ------------------------------------------------------------------------------
//  <auto-generated>
//      This code was generated by coded UI test builder.
//      Version: 11.0.0.0
//
//      Changes to this file may cause incorrect behavior and will be lost if
//      the code is regenerated.
//  </auto-generated>
// ------------------------------------------------------------------------------

namespace CodedUITestProject1
{
    using System;
    using System.CodeDom.Compiler;
    using System.Collections.Generic;
    using System.Drawing;
    using System.Text.RegularExpressions;
    using System.Windows.Input;
    using Microsoft.VisualStudio.TestTools.UITest.Extension;
    using Microsoft.VisualStudio.TestTools.UITesting;
    using Microsoft.VisualStudio.TestTools.UITesting.WpfControls;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using Telerik.VisualStudio.TestTools.UITesting.WpfControls;
    using Keyboard = Microsoft.VisualStudio.TestTools.UITesting.Keyboard;
    using Mouse = Microsoft.VisualStudio.TestTools.UITesting.Mouse;
    using MouseButtons = System.Windows.Forms.MouseButtons;
    
    
    [GeneratedCode("Coded UITest Builder", "11.0.60315.1")]
    public partial class UIMap
    {
        
        /// <summary>
        /// AssertMethod1 - Use 'AssertMethod1ExpectedValues' to pass parameters into this method.
        /// </summary>
        public void AssertMethod1()
        {
            #region Variable Declarations
            WpfGridViewCell uIChelseaCell = this.UIMainWindowWindow.UIClubsGridTable.UIChelseaRow.UIChelseaCell;
            #endregion

            // Verify that the 'AutomationId' property of 'Chelsea' cell equals 'Cell_2_0'
            Assert.AreEqual(this.AssertMethod1ExpectedValues.UIChelseaCellAutomationId, uIChelseaCell.AutomationId);

            // Verify that the 'Value' property of 'Chelsea' cell equals 'Chelsea'
            Assert.AreEqual(this.AssertMethod1ExpectedValues.UIChelseaCellValue, uIChelseaCell.Value.ToString());
        }
        
        #region Properties
        public virtual AssertMethod1ExpectedValues AssertMethod1ExpectedValues
        {
            get
            {
                if ((this.mAssertMethod1ExpectedValues == null))
                {
                    this.mAssertMethod1ExpectedValues = new AssertMethod1ExpectedValues();
                }
                return this.mAssertMethod1ExpectedValues;
            }
        }
        
        public virtual AssertMethod2ExpectedValues AssertMethod2ExpectedValues
        {
            get
            {
                if ((this.mAssertMethod2ExpectedValues == null))
                {
                    this.mAssertMethod2ExpectedValues = new AssertMethod2ExpectedValues();
                }
                return this.mAssertMethod2ExpectedValues;
            }
        }
        
        public UIMainWindowWindow UIMainWindowWindow
        {
            get
            {
                if ((this.mUIMainWindowWindow == null))
                {
                    this.mUIMainWindowWindow = new UIMainWindowWindow();
                }
                return this.mUIMainWindowWindow;
            }
        }
        #endregion
        
        #region Fields
        private AssertMethod1ExpectedValues mAssertMethod1ExpectedValues;
        
        private AssertMethod2ExpectedValues mAssertMethod2ExpectedValues;
        
        private UIMainWindowWindow mUIMainWindowWindow;
        #endregion
    }
    
    /// <summary>
    /// Parameters to be passed into 'AssertMethod1'
    /// </summary>
    [GeneratedCode("Coded UITest Builder", "11.0.60315.1")]
    public class AssertMethod1ExpectedValues
    {
        
        #region Fields
        /// <summary>
        /// Verify that the 'AutomationId' property of 'Chelsea' cell equals 'Cell_2_0'
        /// </summary>
        public string UIChelseaCellAutomationId = "Cell_2_0";
        
        /// <summary>
        /// Verify that the 'Value' property of 'Chelsea' cell equals 'Chelsea'
        /// </summary>
        public string UIChelseaCellValue = "Chelsea";
        #endregion
    }
    
    /// <summary>
    /// Parameters to be passed into 'AssertMethod2'
    /// </summary>
    [GeneratedCode("Coded UITest Builder", "11.0.60315.1")]
    public class AssertMethod2ExpectedValues
    {
        
        #region Fields
        /// <summary>
        /// Verify that the 'AutomationId' property of 'Chelsea' cell equals 'Cell_2_0'
        /// </summary>
        public string UIChelseaCellAutomationId = "Cell_2_0";
        
        /// <summary>
        /// Verify that the 'Value' property of 'Chelsea' cell equals 'Chelsea'
        /// </summary>
        public string UIChelseaCellValue = "Chelsea";
        #endregion
    }
    
    [GeneratedCode("Coded UITest Builder", "11.0.60315.1")]
    public class UIMainWindowWindow : WpfWindow
    {
        
        public UIMainWindowWindow()
        {
            #region Search Criteria
            this.SearchProperties[WpfWindow.PropertyNames.Name] = "MainWindow";
            this.SearchProperties.Add(new PropertyExpression(WpfWindow.PropertyNames.ClassName, "HwndWrapper", PropertyExpressionOperator.Contains));
            this.WindowTitles.Add("MainWindow");
            #endregion
        }
        
        #region Properties
        public UIClubsGridTable UIClubsGridTable
        {
            get
            {
                if ((this.mUIClubsGridTable == null))
                {
                    this.mUIClubsGridTable = new UIClubsGridTable(this);
                }
                return this.mUIClubsGridTable;
            }
        }
        #endregion
        
        #region Fields
        private UIClubsGridTable mUIClubsGridTable;
        #endregion
    }
    
    [GeneratedCode("Coded UITest Builder", "11.0.60315.1")]
    public class UIClubsGridTable : WpfTable
    {
        
        public UIClubsGridTable(UITestControl searchLimitContainer) : 
                base(searchLimitContainer)
        {
            #region Search Criteria
            this.SearchProperties[WpfTable.PropertyNames.AutomationId] = "clubsGrid";
            this.WindowTitles.Add("MainWindow");
            #endregion
        }
        
        #region Properties
        public UIChelseaRow UIChelseaRow
        {
            get
            {
                if ((this.mUIChelseaRow == null))
                {
                    this.mUIChelseaRow = new UIChelseaRow(this);
                }
                return this.mUIChelseaRow;
            }
        }
        #endregion
        
        #region Fields
        private UIChelseaRow mUIChelseaRow;
        #endregion
    }
    
    [GeneratedCode("Coded UITest Builder", "11.0.60315.1")]
    public class UIChelseaRow : WpfGridViewRow
    {
        
        public UIChelseaRow(UITestControl searchLimitContainer) : 
                base(searchLimitContainer)
        {
            #region Search Criteria
            this.SearchProperties["AutomationId"] = "Row_2";
            this.SearchProperties["HelpText"] = "GridViewRow";
            this.SearchConfigurations.Add(SearchConfiguration.AlwaysSearch);
            this.WindowTitles.Add("MainWindow");
            #endregion
        }
        
        #region Properties
        public WpfGridViewCell UIChelseaCell
        {
            get
            {
                if ((this.mUIChelseaCell == null))
                {
                    this.mUIChelseaCell = new WpfGridViewCell(this);
                    #region Search Criteria
                    this.mUIChelseaCell.SearchProperties["ColumnHeader"] = "Name";
                    this.mUIChelseaCell.SearchProperties["AutomationId"] = "Cell_2_0";
                    this.mUIChelseaCell.SearchProperties["HelpText"] = "GridViewCell";
                    this.mUIChelseaCell.WindowTitles.Add("MainWindow");
                    #endregion
                }
                return this.mUIChelseaCell;
            }
        }
        #endregion
        
        #region Fields
        private WpfGridViewCell mUIChelseaCell;
        #endregion
    }
}
