public virtual ActionResult Warmup() { return(Json(new { Questions = _questionManager.GetAllQuestions().Count, Answers = _answerManager.GetAnswers().Count, Obligations = _obligationManager.GetAllObligations().Count, Personas = _personaManager.GetAllPersonas().Count }, JsonRequestBehavior.AllowGet)); }
public void GetAllObligations() { // Arrange _fakeObligationLoader.Setup(x => x.GetObligations()).Returns(GetObligations()); // Act var obligations = _manager.GetAllObligations(); // Assert Assert.IsNotNull(obligations); Assert.AreEqual(6, obligations.Count); }
public virtual ActionResult ObligationDetail() { return(View(_obligationManager.GetAllObligations())); }