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(); }); }
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); }); }