public override void Given() { ConfirmationCacheKey = string.Concat(CacheKey, Constants.IndustryPlacementUpdatedConfirmation); ViewModel = new UpdateLearnerRecordResponseViewModel { ProfileId = 10, Uln = 1234567890, Name = "Test User" }; CacheService.GetAndRemoveAsync <UpdateLearnerRecordResponseViewModel>(ConfirmationCacheKey).Returns(ViewModel); }
public override void Given() { _updateLearnerRecordResponse = null; ViewModel = new UpdateEnglishAndMathsQuestionViewModel { ProfileId = 1, EnglishAndMathsStatus = EnglishAndMathsStatus.Achieved }; TrainingProviderLoader.ProcessEnglishAndMathsQuestionUpdateAsync(ProviderUkprn, ViewModel).Returns(_updateLearnerRecordResponse); }
public override void Given() { _updateLearnerRecordResponse = null; UpdateIndustryPlacementQuestionViewModel = new UpdateIndustryPlacementQuestionViewModel { ProfileId = 1, IndustryPlacementStatus = IndustryPlacementStatus.Completed }; TrainingProviderLoader.ProcessIndustryPlacementQuestionUpdateAsync(ProviderUkprn, UpdateIndustryPlacementQuestionViewModel).Returns(_updateLearnerRecordResponse); }
public override void Given() { _updateLearnerRecordResponse = new UpdateLearnerRecordResponseViewModel { ProfileId = 1, Uln = 1234567890, Name = "Test User", IsModified = true, IsSuccess = true }; ViewModel = new UpdateEnglishAndMathsQuestionViewModel { ProfileId = 1, EnglishAndMathsStatus = EnglishAndMathsStatus.Achieved }; TrainingProviderLoader.ProcessEnglishAndMathsQuestionUpdateAsync(ProviderUkprn, ViewModel).Returns(_updateLearnerRecordResponse); }
public override void Given() { _updateLearnerRecordResponse = new UpdateLearnerRecordResponseViewModel { ProfileId = 1, Uln = 1234567890, Name = "Test User", IsModified = true, IsSuccess = false }; UpdateIndustryPlacementQuestionViewModel = new UpdateIndustryPlacementQuestionViewModel { ProfileId = 1, RegistrationPathwayId = 1, IndustryPlacementStatus = IndustryPlacementStatus.Completed }; TrainingProviderLoader.ProcessIndustryPlacementQuestionUpdateAsync(ProviderUkprn, UpdateIndustryPlacementQuestionViewModel).Returns(_updateLearnerRecordResponse); }
public async override Task When() { ActualResult = await Loader.ProcessIndustryPlacementQuestionUpdateAsync(ProviderUkprn, ViewModel); }
public async override Task When() { ActualResult = await Loader.ProcessEnglishAndMathsQuestionUpdateAsync(ProviderUkprn, ViewModel); }