コード例 #1
0
        public void TestProjectController_ProjectEditSeller(string httpMethod)
        {
            SetUpProjectControllerForTesting(httpMethod);
            projectController.CurrentUser = user;

            ViewResult result = projectController.ProjectEditSeller(projectId) as ViewResult;

            Assert.That(result, Is.Not.EqualTo(null));
            Assert.That(result.Model, Is.EqualTo(projectId.ToString()));
            Assert.That(result.ViewName, Is.EqualTo("ProjectEditSeller"));
        }