コード例 #1
0
        public void Should_not_be_able_to_create_application_without_name_specified()
        {
            UITest(() =>
            {
                var sut = new ConfigureApplicationPage(WebDriver)
                          .CreateApplication(string.Empty);

                //TODO: Verify error message
                sut.VerifyIsCurrentPage();
            });
        }
コード例 #2
0
        public void Should_be_able_to_create_application()
        {
            UITest(() =>
            {
                var applicationName = "TestApplication";

                var sut = new ConfigureApplicationPage(WebDriver)
                          .CreateApplication(applicationName);

                sut.VerifySuccessfullyCreatedApplication(applicationName);

                var homePage = new HomePage(WebDriver);
                homePage.NavigateToPage();
                homePage.VerifyIsCurrentPage();

                homePage.HasApplicationInNavigation(applicationName);
            });
        }