示例#1
0
 public override void Given()
 {
     ProfileId           = 11;
     _mockLearnerDetails = new RequestSoaAlreadySubmittedViewModel
     {
         PathwayStatus = RegistrationPathwayStatus.Active
     };
     StatementOfAchievementLoader.GetPrintRequestSnapshotAsync(ProviderUkprn, ProfileId, PathwayId).Returns(_mockLearnerDetails);
 }
        public override void Given()
        {
            ProfileId = 11;
            ResultsAndCertificationConfiguration.SoaRerequestInDays = 21;
            _mockLearnerDetails = new RequestSoaAlreadySubmittedViewModel
            {
                PathwayStatus = RegistrationPathwayStatus.Withdrawn,
                RequestedOn   = DateTime.Today.AddMonths(-1)
            };

            StatementOfAchievementLoader.GetPrintRequestSnapshotAsync(ProviderUkprn, ProfileId, PathwayId).Returns(_mockLearnerDetails);
        }
        public override void Given()
        {
            ProfileId = 11;
            ResultsAndCertificationConfiguration.SoaRerequestInDays = 21;
            _address = new Address {
                AddressId = 1, DepartmentName = "Operations", OrganisationName = "College Ltd", AddressLine1 = "10, House", AddressLine2 = "Street", Town = "Birmingham", Postcode = "B1 1AA"
            };
            _soaPrintDetails = new SoaPrintingDetails
            {
                Uln          = 1234567890,
                Name         = "John Smith",
                Dateofbirth  = "09 July 2021",
                ProviderName = "Barsley College (569874567)",

                TlevelTitle     = "Design, Surveying and Planning for Construction",
                Core            = "Design, Surveying and Planning for Construction (60358300)",
                CoreGrade       = "A*",
                Specialism      = "Building Services Design (ZTLOS003)",
                SpecialismGrade = "None",

                EnglishAndMaths   = "Achieved minimum standard",
                IndustryPlacement = "Placement completed",

                ProviderAddress = _address
            };

            _mockLearnerDetails = new RequestSoaAlreadySubmittedViewModel
            {
                PathwayStatus   = RegistrationPathwayStatus.Withdrawn,
                RequestedOn     = DateTime.Today,
                RequestedBy     = "John Smith",
                SnapshotDetails = _soaPrintDetails
            };

            StatementOfAchievementLoader.GetPrintRequestSnapshotAsync(ProviderUkprn, ProfileId, PathwayId).Returns(_mockLearnerDetails);
        }
示例#4
0
 public async override Task When()
 {
     ActualResult = await Loader.GetPrintRequestSnapshotAsync(ProviderUkprn, ProfileId, PathwayId);
 }