public void users_should_return_view() { // Arrange const string actionName = "Users"; // Act var sut = new AdminControllerBuilder().Build(); var view = sut.Users(); // Assert Assert.NotNull(view); Assert.IsInstanceOf<BaseController>(sut); sut.AssertGetAttribute(actionName, new[] { typeof(int) }); }
public void index_should_return_view() { // Arrange const string actionName = "Index"; // Act var sut = new AdminControllerBuilder().Build(); var view = sut.Index(); // Assert Assert.NotNull(view); Assert.IsInstanceOf<BaseController>(sut); sut.AssertGetAttribute(actionName); }