Beispiel #1
0
        public void GetWorkflowStatus_Blank()
        {
            var model = new OrganisationViewModel();

            var status = model.GetWorkflowStatus();

            Assert.AreEqual(status, GovUk.Education.ManageCourses.Ui.ViewModels.Enums.WorkflowStatus.Blank);
        }
Beispiel #2
0
        public void GetWorkflowStatus_InitialDraft()
        {
            var model = new OrganisationViewModel
            {
                TrainWithDisability = "TrainWithDisability",
                TrainWithUs         = "TrainWithUs"
            };

            var status = model.GetWorkflowStatus();

            Assert.AreEqual(status, GovUk.Education.ManageCourses.Ui.ViewModels.Enums.WorkflowStatus.InitialDraft);
        }
Beispiel #3
0
        public void GetWorkflowStatus_BlankSubsequentDraft()
        {
            var model = new OrganisationViewModel
            {
                TrainWithDisability = "",
                TrainWithUs         = "",
                Status = EnumStatus.Draft,
                LastPublishedTimestampUtc = DateTime.Now
            };

            var status = model.GetWorkflowStatus();

            Assert.AreEqual(status, GovUk.Education.ManageCourses.Ui.ViewModels.Enums.WorkflowStatus.BlankSubsequentDraft);
        }