public void UserDetails_cannot_be_null_and_redirect_to_pipline() { var target = new DVSViewEditController(Substitute.For<IDVSUserManagementService>()); var result = target.UserDetails(null); result.Should().NotBeNull().And.BeOfType<RedirectToRouteResult>(); ((RedirectToRouteResult)result).RouteValues.Should().HaveCount(2); ((RedirectToRouteResult)result).RouteValues["action"].Should().Be("Administrators"); ((RedirectToRouteResult)result).RouteValues["controller"].Should().Be("DVSPipeline"); }
public void Controller_cannot_be_null() { var target = new DVSViewEditController(Substitute.For<IDVSUserManagementService>()); Assert.IsNotNull(target); }