Пример #1
0
        public override void Given()
        {
            pathwayId = 10;

            TlevelLoader.GetVerifyTlevelDetailsByPathwayIdAsync(ukprn, pathwayId)
            .Returns(viewModel);
        }
        public override void Given()
        {
            pathwayId = 10;
            viewModel = new ConfirmTlevelViewModel {
                PathwayStatusId = (int)TlevelReviewStatus.Confirmed
            };

            TlevelLoader.GetVerifyTlevelDetailsByPathwayIdAsync(ukprn, pathwayId)
            .Returns(viewModel);
        }
        public override void Given()
        {
            pathwayId = 10;
            isBack    = true;

            expectedModel = new ConfirmTlevelViewModel {
                PathwayStatusId = (int)TlevelReviewStatus.AwaitingConfirmation
            };

            TlevelLoader.GetVerifyTlevelDetailsByPathwayIdAsync(ukprn, pathwayId)
            .Returns(expectedModel);
        }
        public override void Given()
        {
            pathwayId     = 10;
            expectedModel = new ConfirmTlevelViewModel
            {
                TqAwardingOrganisationId = 1,
                RouteId             = 2,
                PathwayId           = pathwayId,
                PathwayStatusId     = (int)TlevelReviewStatus.AwaitingConfirmation,
                IsEverythingCorrect = true,
                PathwayName         = "Pathway 1",
                Specialisms         = new List <string> {
                    "sp1", "sp2"
                }
            };

            TlevelLoader.GetVerifyTlevelDetailsByPathwayIdAsync(ukprn, pathwayId)
            .Returns(expectedModel);
        }
Пример #5
0
        public override void Given()
        {
            expectedResult = new ConfirmTlevelViewModel
            {
                PathwayId                = pathwayId,
                PathwayName              = "PathName",
                RouteId                  = 5,
                IsEverythingCorrect      = false,
                PathwayStatusId          = 1,
                TqAwardingOrganisationId = 7,
                Specialisms              = new List <string> {
                    "spl1", "spl2"
                }
            };

            InputModel = new ConfirmTlevelViewModel {
                PathwayStatusId = (int)TlevelReviewStatus.AwaitingConfirmation, PathwayId = pathwayId
            };
            TlevelLoader.GetVerifyTlevelDetailsByPathwayIdAsync(ukprn, pathwayId)
            .Returns(expectedResult);

            Controller.ModelState.AddModelError("IsEverythingCorrect", "Select yes if this T Level’s details are correct");
        }