public void LoadTest() { //Arrange var documentstore = ObjectFactory.GetInstance<IDocumentStore>(); var presentationRepository = ObjectFactory.GetInstance<IPresentationRepository>(); var target = new GetMyPresentationsViewFactory(documentstore, presentationRepository); // TODO: Initialize to an appropriate value var input = new PresentationListInputModel {UserId = "users/1"}; //Arrange var actual = target.Load(input); //Assert Assert.AreEqual(3, actual.Presentations.Count); }
public ActionResult GetAllPresentations(PresentationListInputModel input) { var model = viewRepository.Load<PresentationListInputModel, PresentationListViewModel>(input); return Json(model, JsonRequestBehavior.AllowGet); }
public ActionResult Mine() { var input = new PresentationListInputModel {UserId = this.User.Identity.Name}; var model = viewRepository.Load<PresentationListInputModel, PresentationListViewModel>(input); return View(model); }