public override void Given() { ViewModel = new RequestSoaUniqueLearnerNumberViewModel { SearchUln = "1234567891" }; _soaLearnerRecord = new FindSoaLearnerRecord { ProfileId = 11, Uln = 1234567891, LearnerName = "Test Name", DateofBirth = DateTime.UtcNow.AddYears(-30), ProviderName = "Provider (1234567)", TlevelTitle = "Title", Status = Common.Enum.RegistrationPathwayStatus.Withdrawn, HasPathwayResult = false, IndustryPlacementStatus = Common.Enum.IndustryPlacementStatus.NotCompleted, IsIndustryPlacementAdded = true }; StatementOfAchievementLoader.FindSoaLearnerRecordAsync(ProviderUkprn, ViewModel.SearchUln.ToLong()).Returns(_soaLearnerRecord); }
public override void Given() { ViewModel = new RequestSoaUniqueLearnerNumberViewModel { SearchUln = "1234567891" }; _soaLearnerRecord = new FindSoaLearnerRecord { Uln = 1234567891, LearnerName = "Test Name", DateofBirth = DateTime.UtcNow.AddYears(-30), ProviderName = "Provider (1234567)", TlevelTitle = "Title", Status = Common.Enum.RegistrationPathwayStatus.Active }; StatementOfAchievementLoader.FindSoaLearnerRecordAsync(ProviderUkprn, ViewModel.SearchUln.ToLong()).Returns(_soaLearnerRecord); }
public override void Setup() { _tokenServiceClient = Substitute.For <ITokenServiceClient>(); _configuration = new ResultsAndCertificationConfiguration { ResultsAndCertificationInternalApiSettings = new ResultsAndCertificationInternalApiSettings { Uri = "http://tlevel.api.com" } }; _mockApiResponse = new FindSoaLearnerRecord { ProfileId = 11, Uln = _uln, LearnerName = "Test User", DateofBirth = DateTime.UtcNow.AddYears(30), ProviderName = "Barnsley College (123456789)", TlevelTitle = "Title", Status = RegistrationPathwayStatus.Active, IsIndustryPlacementAdded = true, IndustryPlacementStatus = IndustryPlacementStatus.Completed, HasPathwayResult = true }; }
public override void Given() { ViewModel = new RequestSoaUniqueLearnerNumberViewModel { SearchUln = "1234567891" }; _soaLearnerRecord = null; StatementOfAchievementLoader.FindSoaLearnerRecordAsync(ProviderUkprn, ViewModel.SearchUln.ToLong()).Returns(_soaLearnerRecord); }
public async override Task When() { _actualResult = await _apiClient.FindSoaLearnerRecordAsync(_providerUkprn, _uln); }