public void addadmin_get_should_return_view_and_viewmodel() { // Arrange // Act ViewResult result = _controller.AddAdmin() as ViewResult; // Assert Assert.That(result, Is.Not.Null, "ViewResult"); UserViewModel model = result.ModelFromActionResult <UserViewModel>(); Assert.That(model, Is.Not.Null, "model"); }
public void AddAdmin_GET_Should_Return_View_And_ViewModel() { // Arrange // Act ViewResult result = _controller.AddAdmin() as ViewResult; // Assert Assert.That(result, Is.Not.Null, "ViewResult"); UserViewModel model = result.ModelFromActionResult <UserViewModel>(); Assert.That(model, Is.Not.Null, "model"); }