Create() private method

private Create ( Comment comment ) : System.Web.Mvc.ActionResult
comment Blog.WebApp.Models.Comment
return System.Web.Mvc.ActionResult
コード例 #1
0
 public void CreateController()
 {
     repository = new Mock<ICommentsRepository>();
     controller = new CommentsController(repository.Object);
     result = controller.Create(comment);
 }