public void TestProjectController_ProjectEditDealerContractor(string httpMethod) { SetUpProjectControllerForTesting(httpMethod); projectController.CurrentUser = user; ViewResult result = projectController.ProjectEditDealerContractor(projectId) as ViewResult; Assert.That(result, Is.Not.EqualTo(null)); Assert.That(result.Model, Is.EqualTo(projectId.ToString())); Assert.That(result.ViewName, Is.EqualTo("ProjectEditDealerContractor")); }