public async Task <SoaPrintingResponse> CreateSoaPrintingRequestAsync(SoaPrintingRequest request) { var soaBatchRequest = _mapper.Map <Batch>(request); var result = await _batchRepository.CreateAsync(soaBatchRequest); return(new SoaPrintingResponse { Uln = request.Uln, LearnerName = request.LearnerName, IsSuccess = result > 0 }); }
public async Task <SoaPrintingResponse> CreateSoaPrintingRequestAsync(SoaPrintingRequest request) { return(await PostAsync <SoaPrintingRequest, SoaPrintingResponse>(ApiConstants.CreateSoaPrintingRequestUri, request)); }
public async Task <SoaPrintingResponse> CreateSoaPrintingRequestAsync(SoaPrintingRequest request) { return(await _statementOfAchievementService.CreateSoaPrintingRequestAsync(request)); }
public override void Setup() { _tokenServiceClient = Substitute.For <ITokenServiceClient>(); _configuration = new ResultsAndCertificationConfiguration { ResultsAndCertificationInternalApiSettings = new ResultsAndCertificationInternalApiSettings { Uri = "http://tlevel.api.com" } }; _mockHttpResult = new SoaPrintingResponse { Uln = 1234567891, LearnerName = "Test User", IsSuccess = true }; _model = new SoaPrintingRequest { AddressId = 11, RegistrationPathwayId = 9, Uln = 1111111119, LearnerName = "First 9 Last 9", LearningDetails = new LearningDetails { TLevelTitle = "Design, Surveying and Planning for Construction", Grade = null, Date = "24 April 2021", Core = "Design Surveying and Planning", CoreGrade = "B", OccupationalSpecialism = new List <OccupationalSpecialismDetails> { new OccupationalSpecialismDetails { Specialism = "Surveying and Design for Construction and the Built Environment", Grade = "Merit" } }, IndustryPlacement = "Not completed", EnglishAndMaths = "Met" }, SoaPrintingDetails = new SoaPrintingDetails { Uln = 1111111119, Name = "First 9 Last 9", Dateofbirth = "10 August 1987", ProviderName = "Barnsley College (10000536)", TlevelTitle = "Design, Surveying and Planning for Construction", Core = "Design Surveying and Planning (78945617)", CoreGrade = "B", Specialism = "Surveying and Design for Construction and the Built Environment (ZT456897)", SpecialismGrade = "Merit", EnglishAndMaths = "Achieved minimum standard", IndustryPlacement = "Not completed", ProviderAddress = new Models.Contracts.ProviderAddress.Address { DepartmentName = "Exams Office", OrganisationName = "Barnsley Academy", AddressLine1 = "Main Block", AddressLine2 = "Farm Road", Town = "Barnsley", Postcode = "S70 3DL" } }, PerformedBy = "Test Provider" }; }