Beispiel #1
0
        private void MigrateOktoikh()
        {
            string folder = Path.Combine(FOLDER_PATH, @"Books\Oktoikh");

            IOktoikhDayFileReader reader = new OktoikhDayFileReader(new FileReader(folder));

            IEasterContext easterContext = new EasterContext(_unitOfWork);

            IOktoikhDayService service = new OktoikhDayService(_unitOfWork, easterContext);

            IOktoikhDayFactory factory = new OktoikhDayFactory();

            IMigrationManager manager = new OktoikhDayMigrationManager(factory, reader, service);

            manager.Import();
        }
Beispiel #2
0
        private void MigrateOktoikh()
        {
            string folder = Path.Combine(Properties.Settings.Default.FolderPath, @"Books\Oktoikh");

            IOktoikhDayFileReader reader = new OktoikhDayFileReader(new FileReader(folder));

            IEasterContext easterContext = new EasterContext(_unitOfWork);

            IOktoikhDayService service = new OktoikhDayService(_unitOfWork, easterContext);

            IOktoikhDayFactory factory = new OktoikhDayFactory();

            IMigrationManager manager = new OktoikhDayMigrationManager(factory, reader, service);

            manager.Migrate();
        }