コード例 #1
0
ファイル: Migration.cs プロジェクト: AlexLunyov/TypiconOnline
        private void MigrateTheotokionIrmologion()
        {
            string folder = Path.Combine(FOLDER_PATH, @"Books\Irmologion\Theotokion");

            ITheotokionAppFileReader reader = new TheotokionAppFileReader(new FileReader(folder));

            ITheotokionAppService service = new TheotokionAppService(_unitOfWork);

            ITheotokionAppFactory factory = new TheotokionAppFactory();

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

            manager.Import();
        }
コード例 #2
0
ファイル: Migration.cs プロジェクト: uzador/TypiconOnline
        private void MigrateTheotokionIrmologion()
        {
            string folder = Path.Combine(Properties.Settings.Default.FolderPath, @"Books\Irmologion\Theotokion");

            ITheotokionAppFileReader reader = new TheotokionAppFileReader(new FileReader(folder));

            ITheotokionAppService service = new TheotokionAppService(_unitOfWork);

            ITheotokionAppFactory factory = new TheotokionAppFactory();

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

            manager.Migrate();
        }