public static PopulationFileSelectionDTO From(PopulationFile populationFile) { return(new PopulationFileSelectionDTO { FilePath = populationFile.FilePath, Status = populationFile.Status, Count = populationFile.NumberOfIndividuals, Messages = populationFile.Log }); }
protected override void Context() { _goodFile = new PopulationFile(); _goodFile.AddInfo("Info"); _warningFile = new PopulationFile(); _warningFile.AddWarning("Warning"); _errorFile = new PopulationFile(); _errorFile.AddError("Error"); _debugFile = new PopulationFile(); _debugFile.AddDebug("Debug"); sut = new ImportPopulation(); }