Пример #1
0
        public void ReadFile_EmptyFile_ShouldReturnEmpty_Test()
        {
            DeleteFile(_inputFilePath);
            CreateFile(_inputFilePath, "");
            var text = _fileReaderService.ReadFile();

            Assert.IsEmpty(text);
        }
Пример #2
0
        public ParseResults ValidateFile(FilePayload filePayload)
        {
            fileCompressionService.DecompressFile(filePayload.DownloadFilePath,
                                                  filePayload.DecompressedDownloadFilePath);
            fileReaderService.ReadFile(filePayload);
            ParseResults parseResults = statsFileParserService.Parse(filePayload);

            filePayload.FileUtcDateTime = parseResults.DownloadDateTime;
            return(parseResults);
        }