public static void Main() { // Creating MongoDb database. var dbMongoDb = new MediaDistributorsMongoData(); // Generating distributors. var genedartor = new DataGenerator(); var generatedDistributors = genedartor.GenerateDistributors(3); // Inserting to MongoDb. dbMongoDb.InsertToMongo(generatedDistributors); var distributorsToSql = dbMongoDb.GetFromMongo(); // Creating and insert to SQL Server database. var dbSql = new MediaMonitoringSystemDbContext(); foreach (var distributor in distributorsToSql) { dbSql.MediaDistributors.Add(distributor); } dbSql.SaveChanges(); >>>>>>> e1c871f4a51ce55ee53ae24534264957938a56bb var sqlite = new MediaMonitoringPricingData(); // Extracting zip file. IArchiever zipArchiver = new ZipArchiever(); string zipPath = "../../MOCK_DATA.zip"; string extractedPath = "../../Export/"; zipArchiver.UnArchieve(zipPath, extractedPath); IImporter excelImporter = new ExcelImporter(new MediaMonitoringSystemDbContext()); string[] paths = new string[] { "../../MOCK_DATA.zip", "../../Export/", "../../Export/MOCK_DATA/MOCK_DATA.xls" }; // Importing data from excel. IBulkImporter bulkImporter = new ExcelBulkImporter(zipArchiver, excelImporter, paths); bulkImporter.ImportAll(); // Creating PDF file. var pdfWriter = new PdfReportWriter(); pdfWriter.Generate(); // Generating JSONs files. var jsonExporter = new JsonReportWriter(); jsonExporter.Generate(); //var xmlReporter = new XMLReportWriter(); //xmlReporter.Generate(); }