public void WhenShowingTheIndexPage_ThenAPageIsShown() { // Arrange var controller = new HomeController().WithUnAuthenticatedUser(); // Act var result = controller.Index(); // Assert Assert.That(result,Is.InstanceOf<ViewResult>()); }
public void WhenShowingTheContactPage_ThenAPageIsShown() { // Arrange var controller = new HomeController(); // Act var result = controller.Contact(); // Assert Assert.That(result, Is.InstanceOf<ViewResult>()); }