public void Then_Expected_Methods_AreCalled() { StatementOfAchievementLoader.Received(1).FindSoaLearnerRecordAsync(ProviderUkprn, ViewModel.SearchUln.ToLong()); CacheService.Received(1).SetAsync(CacheKey, ViewModel); CacheService.Received(1).SetAsync(CacheKey, Arg.Is<RequestSoaUlnNotFoundViewModel>(x => x.Uln == ViewModel.SearchUln), Common.Enum.CacheExpiryTime.XSmall); }
public void Then_Expected_Methods_Called() { StatementOfAchievementLoader.Received(1).CreateSoaPrintingRequestAsync(ProviderUkprn, _mockLearnerDetails); CacheService.Received(1).SetAsync(string.Concat(CacheKey, Constants.RequestSoaConfirmation), Arg.Is <SoaConfirmationViewModel> (x => x.Name == _mockLearnerDetails.LearnerName && x.Uln == _mockLearnerDetails.Uln), CacheExpiryTime.XSmall); }
public void Then_Expected_Methods_AreCalled() { StatementOfAchievementLoader.Received(1).FindSoaLearnerRecordAsync(ProviderUkprn, ViewModel.SearchUln.ToLong()); CacheService.Received(1).SetAsync(CacheKey, ViewModel); CacheService.Received(1).SetAsync(CacheKey, Arg.Is <RequestSoaUlnNotWithdrawnViewModel>(x => x.Uln == _soaLearnerRecord.Uln && x.LearnerName == _soaLearnerRecord.LearnerName && x.DateofBirth == _soaLearnerRecord.DateofBirth && x.ProviderName == _soaLearnerRecord.ProviderName && x.TLevelTitle == _soaLearnerRecord.TlevelTitle ), Common.Enum.CacheExpiryTime.XSmall); }
public void Then_Expected_Methods_AreCalled() { StatementOfAchievementLoader.Received(1).GetSoaLearnerRecordDetailsAsync(ProviderUkprn, ProfileId); }
public void Then_Expected_Methods_AreCalled() { StatementOfAchievementLoader.Received(1).GetPrintRequestSnapshotAsync(ProviderUkprn, ProfileId, PathwayId); }
public void Then_Expected_Methods_Called() { StatementOfAchievementLoader.Received(1).CreateSoaPrintingRequestAsync(ProviderUkprn, _mockLearnerDetails); }
public void Then_Expected_Methods_AreCalled() { StatementOfAchievementLoader.Received(1).FindSoaLearnerRecordAsync(ProviderUkprn, ViewModel.SearchUln.ToLong()); CacheService.Received(1).SetAsync(CacheKey, ViewModel); CacheService.Received(1).RemoveAsync <RequestSoaUniqueLearnerNumberViewModel>(CacheKey); }