Ejemplo n.º 1
0
        public void StepThroughWizard()
        {
            // Arrange
            var workflow = new WizardWorkflow(namePage);

            // Act
            FinishedPage finishedPage = workflow.StepThrough();

            // Assert
            Assert.IsTrue(finishedPage.CongratulationsExists);
        }
Ejemplo n.º 2
0
        public void StepThroughWizard()
        {
            // Arrange
            var workflow = new WizardWorkflow(nameWizardPage);

            // Act
            FinishedWizardPage finishedWizardPage = workflow.StepThrough();

            // Assert
            Assert.IsTrue(finishedWizardPage.CongratulationsExists);
        }
Ejemplo n.º 3
0
        public void StepThroughWizard()
        {
            using (var finishedWebPage = new TempWebPage(Finished))
                using (var addressWebPage = new TempWebPage(string.Format(Address, Path.GetFileName(finishedWebPage.FilePath))))
                    using (var nameWebPage = new TempWebPage(string.Format(Name, Path.GetFileName(addressWebPage.FilePath))))
                    {
                        // Arrange
                        var namePage = Page.Launch <NamePage>(nameWebPage.FilePath);
                        var workflow = new WizardWorkflow(namePage);

                        // Act
                        FinishedPage finishedPage = workflow.StepThrough();

                        // Assert
                        Assert.IsTrue(finishedPage.CongratulationsExists);
                    }
        }
Ejemplo n.º 4
0
        public void StepThroughWizard()
        {
            using (var finishedWebPage = new TempWebPage(Finished))
            using (var addressWebPage = new TempWebPage(string.Format(Address, Path.GetFileName(finishedWebPage.FilePath))))
            using (var nameWebPage = new TempWebPage(string.Format(Name, Path.GetFileName(addressWebPage.FilePath))))
            {
                // Arrange
                var namePage = Page.Launch<NamePage>(nameWebPage.FilePath);
                var workflow = new WizardWorkflow(namePage);

                // Act
                FinishedPage finishedPage = workflow.StepThrough();

                // Assert
                Assert.IsTrue(finishedPage.CongratulationsExists);
            }
        }