public Task StartAsync(CancellationToken cancellationToken) { _logger.LogInformation("Starting application"); _gedLoader.LoadGEDFile(InputFilename, KeyIndividual); _reportWriter.WriteReports(_gedLoader.GEDModel, IndividualsOutputFilename, EventsOutputFilename); return(Task.CompletedTask); }
private GEDModel GetModelFromTestInput() { var mockLogger = new Mock <ILogger <GEDLoader> >(); GEDLoader loader = new GEDLoader(mockLogger.Object); loader.LoadGEDFile("./Resources/TestInput.ged", "@I0@"); Equal(5, loader.GEDModel.Individuals.Count); True(loader.GEDModel.Individuals.ContainsKey("@I0@")); False(loader.GEDModel.Individuals.ContainsKey("MadeUpKey")); return(loader.GEDModel); }