public void VerifyCohortsInReviewIsCorrect(ApprenticeshipRequestsHeaderViewModel result) { Assert.IsNotNull(result.CohortsInReview); Assert.AreEqual(4, result.CohortsInReview.Count); Assert.AreEqual("Ready to review", result.CohortsInReview.Description); UrlHelper.Verify(x => x.Action(It.Is <UrlActionContext>(p => p.Controller == "Cohort" && p.Action == "Review"))); }
public void VerifySelectedCohortStatusIsCorrect(ApprenticeshipRequestsHeaderViewModel result, CohortStatus expectedCohortStatus) { Assert.AreEqual(expectedCohortStatus == CohortStatus.WithTransferSender, result.CohortsWithTransferSender.IsSelected); Assert.AreEqual(expectedCohortStatus == CohortStatus.Draft, result.CohortsInDraft.IsSelected); Assert.AreEqual(expectedCohortStatus == CohortStatus.Review, result.CohortsInReview.IsSelected); Assert.AreEqual(expectedCohortStatus == CohortStatus.WithProvider, result.CohortsWithTrainingProvider.IsSelected); }
public void VerifyCohortsWithTransferSenderIsCorrect(ApprenticeshipRequestsHeaderViewModel result) { Assert.IsNotNull(result.CohortsWithTransferSender); Assert.AreEqual(2, result.CohortsWithTransferSender.Count); Assert.AreEqual("With transfer sending employers", result.CohortsWithTransferSender.Description); UrlHelper.Verify(x => x.Action(It.Is <UrlActionContext>(p => p.Controller == "Cohort" && p.Action == "WithTransferSender"))); }
public void VerifyShowDraftsIsCorrect(ApprenticeshipRequestsHeaderViewModel result, bool expectedShowDrafts) { Assert.AreEqual(expectedShowDrafts, result.ShowDrafts); }
public void VerifyIsSignedAgreementIsCorrect(ApprenticeshipRequestsHeaderViewModel result, bool expectedIsAgreementSigned) { Assert.AreEqual(expectedIsAgreementSigned, result.IsAgreementSigned); }