public async Task ThenThePreviousImportDateShouldBeRetrieved()
        {
            //Act
            await _importer.RunUpdate();

            //Assert
            _charityRepository.Verify(x => x.GetLastCharityDataImport(), Times.Once);
        }
Ejemplo n.º 2
0
        public async Task ThenIfAPreviousImportExistsThenSubsequenttMonthIsUsedAsDefault()
        {
            //Act
            await _importer.RunUpdate();

            //Assert
            _dataDownloadService.Verify(x => x.GetFileStream(It.IsAny <string>()), Times.Once);
        }