public async Task ThenThePreviousImportDateShouldBeRetrieved() { //Act await _importer.RunUpdate(); //Assert _charityRepository.Verify(x => x.GetLastCharityDataImport(), Times.Once); }
public async Task ThenIfAPreviousImportExistsThenSubsequenttMonthIsUsedAsDefault() { //Act await _importer.RunUpdate(); //Assert _dataDownloadService.Verify(x => x.GetFileStream(It.IsAny <string>()), Times.Once); }