public ActionResult Index() { var wk = _workoutService.CurrentWorkout(); if (wk != null) { var summary = _viewFactory.Load(wk.WorkoutId); return(View(summary)); } else { return(View("PromptForNew")); } }
public void ThenViewFactoryThrowsAnExceptionOnAttemptToLoadDifferentPage() { Assert.Throws <ZukiniAssertionException>(() => _viewFactory.Load <MissingFakePage>()); }
public PartialViewResult _Summary() { IList <Workout> model = _workoutViewFactory.Load(_idProvider.UserId()).OrderByDescending(x => x.StartDate).ToList(); return(PartialView(model)); }
public PartialViewResult CardioList() { return(PartialView(_viewFactory.Load(ExerciseType.Cardio))); }
public YouTubeComponent FindPlayerByTitle(string frameTitle) { return(_viewFactory.Load(() => new YouTubeComponent(_.FindFrame(frameTitle)))); }