public void Then_Expected_Methods_AreCalled() { TrainingProviderLoader.Received(1).FindLearnerRecordAsync(ProviderUkprn, uln, _evaluteSendConfirmation); CacheService.Received(1).GetAsync <AddLearnerRecordViewModel>(CacheKey); CacheService.Received(1).SetAsync(CacheKey, Arg.Any <AddLearnerRecordViewModel>()); }
public void Then_Expected_Methods_Called() { TrainingProviderLoader.Received(1).ProcessEnglishAndMathsQuestionUpdateAsync(ProviderUkprn, ViewModel); CacheService.Received(1).SetAsync(string.Concat(CacheKey, Constants.EnglishAndMathsAchievementUpdatedConfirmation), Arg.Is <UpdateLearnerRecordResponseViewModel> (x => x.ProfileId == _updateLearnerRecordResponse.ProfileId && x.Name == _updateLearnerRecordResponse.Name && x.Uln == _updateLearnerRecordResponse.Uln), CacheExpiryTime.XSmall); }
public void Then_Expected_Methods_Called() { TrainingProviderLoader.Received(1).AddLearnerRecordAsync(ProviderUkprn, AddLearnerRecordViewModel); CacheService.Received(1).RemoveAsync <SearchLearnerRecordViewModel>(CacheKey); CacheService.Received(1).RemoveAsync <AddLearnerRecordViewModel>(CacheKey); CacheService.Received(1).SetAsync(string.Concat(CacheKey, Constants.AddLearnerRecordConfirmation), Arg.Is <LearnerRecordConfirmationViewModel> (x => x.Name == AddLearnerRecordViewModel.LearnerRecord.Name && x.Uln == AddLearnerRecordViewModel.LearnerRecord.Uln), CacheExpiryTime.XSmall); }
public void Then_Expected_Methods_Called() { TrainingProviderLoader.Received(1).ProcessIndustryPlacementQuestionUpdateAsync(ProviderUkprn, UpdateIndustryPlacementQuestionViewModel); }
public void Then_Expected_Methods_AreCalled() { TrainingProviderLoader.Received(1).GetLearnerRecordDetailsAsync <LearnerRecordDetailsViewModel>(ProviderUkprn, ProfileId); }
public void Then_Expected_Methods_Called() { TrainingProviderLoader.Received(1).ProcessEnglishAndMathsQuestionUpdateAsync(ProviderUkprn, ViewModel); }
public void Then_Expected_Methods_Called() { TrainingProviderLoader.Received(1).AddLearnerRecordAsync(ProviderUkprn, AddLearnerRecordViewModel); CacheService.DidNotReceive().RemoveAsync <AddLearnerRecordViewModel>(CacheKey); }
public void Then_Expected_Methods_AreCalled() { TrainingProviderLoader.Received(1).GetLearnerRecordDetailsAsync <UpdateIndustryPlacementQuestionViewModel>(ProviderUkprn, ProfileId, PathwayId); }
public void Then_Expected_Methods_AreCalled() { TrainingProviderLoader.Received(1).FindLearnerRecordAsync(ProviderUkprn, uln); CacheService.Received(1).SetAsync(CacheKey, Arg.Any <SearchLearnerRecordViewModel>()); }
public void Then_Expected_Methods_AreCalled() { TrainingProviderLoader.Received(1).GetLearnerRecordDetailsAsync <UpdateEnglishAndMathsQuestionViewModel>(ProviderUkprn, ProfileId); }
public void Then_Expected_Methods_AreCalled() { TrainingProviderLoader.Received(1).FindLearnerRecordAsync(ProviderUkprn, uln); }