protected virtual void Command()
        {
            INewForm rf = new NewForm();

            if (rf.ShowDialog() == DialogResult.OK)
            {
                var newItem = new DemoPage()
                {
                    TextX = rf.NewName,
                };
                _collection.Add(rf.NewName, newItem, null);
            }
        }
Example #2
0
        public void WhenIFillInTheRequiredFieldsAndClickButton(Table fieldInfo)
        {
            UserInfo userInfo = new UserInfo
            {
                FirstName   = fieldInfo.Rows[0]["FirstName"],
                LastName    = fieldInfo.Rows[0]["LastName"],
                Email       = fieldInfo.Rows[0]["Email"],
                Phone       = fieldInfo.Rows[0]["Phone"],
                CompanyName = fieldInfo.Rows[0]["CompanyName"],
                Country     = fieldInfo.Rows[0]["Country"]
            };

            Application.SwitchToLatestHandle();
            _demoPage = ((DemoPage)Application.CurrentPage);
            _demoPage.FillFormAndPlay(userInfo);
        }
Example #3
0
 public StepDefinitions(IWebDriver driver)
 {
     _page = new DemoPage(driver);
 }
 public DemoSteps(IWebDriver driver)
 {
     _page = new DemoPage(driver);
 }
Example #5
0
 public void ThenTheContractManagementDemoPageIsDisplayed()
 {
     Application.SwitchToLatestHandle();
     _demoPage = ((DemoPage)Application.CurrentPage);
     Assert.AreEqual("Demo", _demoPage.PageIdentifier);
 }
Example #6
0
 public App()
 {
     MainPage = new DemoPage();
 }