Exemple #1
0
        public override void Given()
        {
            mockresult = new ResultDetailsViewModel
            {
                ProfileId               = 1,
                Uln                     = 1234567890,
                Name                    = "Test",
                ProviderDisplayName     = "Test Provider (1234567)",
                PathwayDisplayName      = "Pathway (7654321)",
                PathwayAssessmentSeries = "Summer 2021",
                PathwayAssessmentId     = 11,
                SpecialismDisplayName   = "Specialism1 (2345678)",
                PathwayResult           = "A",
                PathwayResultId         = 123,
                PathwayStatus           = RegistrationPathwayStatus.Active
            };

            _routeAttributes = new Dictionary <string, string>
            {
                { Constants.ProfileId, ProfileId.ToString() },
                { Constants.AssessmentId, mockresult.PathwayAssessmentId.ToString() }
            };

            ResultLoader.GetResultDetailsAsync(AoUkprn, ProfileId, RegistrationPathwayStatus.Active).Returns(mockresult);
        }
Exemple #2
0
        public override void Given()
        {
            mockresult = new ResultDetailsViewModel
            {
                ProfileId           = 1,
                Uln                 = 1234567890,
                Name                = "Test",
                ProviderDisplayName = "Test Provider (1234567)",
                PathwayStatus       = RegistrationPathwayStatus.Active
            };

            ResultLoader.GetResultDetailsAsync(AoUkprn, ProfileId, RegistrationPathwayStatus.Active).Returns(mockresult);
        }
        public override void Given()
        {
            mockresult = new ResultDetailsViewModel
            {
                ProfileId               = 1,
                Uln                     = 1234567890,
                Name                    = "Test",
                ProviderDisplayName     = "Test Provider (1234567)",
                PathwayDisplayName      = "Pathway (7654321)",
                PathwayAssessmentSeries = "Summer 2021",
                SpecialismDisplayName   = "Specialism1 (2345678)",
                PathwayStatus           = RegistrationPathwayStatus.Withdrawn
            };

            ResultLoader.GetResultDetailsAsync(AoUkprn, ProfileId, RegistrationPathwayStatus.Withdrawn).Returns(mockresult);
        }
 public async override Task When()
 {
     ActualResult = await Loader.GetResultDetailsAsync(AoUkprn, ProfileId);
 }