Example #1
0
        public override void Given()
        {
            var mockresult = new SelectToReviewPageViewModel();

            TlevelLoader.GetTlevelsToReviewByUkprnAsync(Arg.Any <long>())
            .Returns(mockresult);
        }
Example #2
0
        public override void Given()
        {
            InputModel = new SelectToReviewPageViewModel {
                SelectedPathwayId = selectedPathwayId
            };
            Controller.ModelState.AddModelError("SelectedPathwayId", "Please select a T level.");

            mockresult = new SelectToReviewPageViewModel
            {
                SelectedPathwayId = selectedPathwayId,
                TlevelsToReview   = new List <TlevelToReviewViewModel> {
                }
            };

            TlevelLoader.GetTlevelsToReviewByUkprnAsync(Arg.Any <long>())
            .Returns(mockresult);
        }
Example #3
0
        public override void Given()
        {
            selectedPathwayId = 99;

            mockresult = new SelectToReviewPageViewModel
            {
                TlevelsToReview = new List <TlevelToReviewViewModel>
                {
                    new TlevelToReviewViewModel {
                        PathwayId = 1, TlevelTitle = "Route1: Pathway1"
                    },
                }
            };

            TlevelLoader.GetTlevelsToReviewByUkprnAsync(Arg.Any <long>())
            .Returns(mockresult);
        }