static void Main(string[] args) { var repository = new ServerDataRepository(); //we can use any DI to initiate our repositories var processedData = GetProcessedData(repository); var dataMigrater = new DataMigrater(processedData, repository); Console.WriteLine("Data migration started..."); dataMigrater.Migrate(); Console.WriteLine("Data migration completed..."); Console.ReadLine(); }
static void Main(string[] args) { var repository = new ServerDataRepository(); //we can use any DI to initiate our repositories var processedData = GetProcessedData(repository); var dataMigrater = new DataMigrater(processedData,repository); Console.WriteLine("Data migration started..."); dataMigrater.Migrate(); Console.WriteLine("Data migration completed..."); Console.ReadLine(); }