public void GenerateGran_WhenPutCoverageData_ThenShouldReturnGranuleSet() { //Arrange var coverageData = new CoverageData(new List <List <int> >()); //Act var result = _granuleService.GenerateGran(coverageData); //Assert Assert.NotNull(result); }
public GranuleSetWithPath Load(out string error) { error = null; var path = _fileService.GetPathFromOpenFileDialog(FileService.CsvFilter); if (string.IsNullOrEmpty(path)) { if (path == string.Empty) { error = "Ścieżka do pliku jest pusta."; } return(null); } var content = _fileService.ReadFile(path, out error); if (!string.IsNullOrEmpty(error)) { return(null); } var data = _coverageDataConverter.Convert(content, out error); if (data == null) { return(null); } var coverageFile = new CoverageFile(path, data); if (!_coverageFileValidator.Valid(coverageFile, out error)) { return(null); } var granuleSet = _granuleService.GenerateGran(coverageFile.CoverageData); return(new GranuleSetWithPath(granuleSet, path)); }