public void TestProjectDashboardController_Project_ShouldReturnProjectModelByProjectId(string httpMethod) { //Arrange SetUpProjectControllerForTesting(httpMethod); projectController.CurrentUser = user; //Act ViewResult result = projectController.Project(projectId) as ViewResult; //Result Assert.That(this.response.HasError, Is.EqualTo(false)); ProjectModel _model = result.Model as ProjectModel; Assert.That(_model, Is.Not.Null); Assert.That(_model.ProjectId, Is.EqualTo(projectId)); Assert.That(projectController.RouteData.Values["action"], Is.EqualTo("Project")); Assert.That(result, Is.Not.Null); }