public Index ( ) : System.Web.Mvc.ActionResult | ||
return | System.Web.Mvc.ActionResult |
public void Index() { var repository = new Mock<IPostsRepository>(); repository.Setup(c => c.All()).Returns(posts); controller = new HomeController(repository.Object); result = controller.Index(); }