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);
 }
Example #6
0
 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);
 }
Example #8
0
 public void Then_Expected_Methods_AreCalled()
 {
     TrainingProviderLoader.Received(1).GetLearnerRecordDetailsAsync <UpdateIndustryPlacementQuestionViewModel>(ProviderUkprn, ProfileId, PathwayId);
 }
Example #9
0
 public void Then_Expected_Methods_AreCalled()
 {
     TrainingProviderLoader.Received(1).FindLearnerRecordAsync(ProviderUkprn, uln);
     CacheService.Received(1).SetAsync(CacheKey, Arg.Any <SearchLearnerRecordViewModel>());
 }
Example #10
0
 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);
 }