Exemplo n.º 1
0
        private void MigrateKathismas(TypiconEntity typiconEntity)
        {
            Console.WriteLine("MigrateKathismas(TypiconEntity typiconEntity)");
            string folder = Path.Combine(Properties.Settings.Default.FolderPath, @"Books\Psalter");

            var context = new PsalterContext(_unitOfWork);

            var manager = new KathismasMigrationManager(context);

            manager.MigrateKathismas(new PsalterRuReader(folder, "cs-ru"), typiconEntity);
        }
Exemplo n.º 2
0
        private void MigrateKathismas(TypiconVersion typiconEntity)
        {
            Console.WriteLine("MigrateKathismas(TypiconVersion typiconEntity)");
            string folder = Path.Combine(FOLDER_PATH, @"Books\Psalter");

            var context = new PsalterContext(_unitOfWork);

            var manager = new KathismasMigrationManager(context);

            manager.MigrateKathismas(new PsalterRuReader(folder, DEFAULT_LANGUAGE), typiconEntity);
            //Commit();
            manager.MigrateKathismas(new PsalterCsReader(folder, "cs-cs"), typiconEntity, true);
            Commit();
        }
Exemplo n.º 3
0
        public DayElementBase Calculate(RuleHandlerSettings settings)
        {
            var response = PsalterContext.Get(new GetPsalmRequest()
            {
                Number = Number
            });

            BookReading psalmReading = null;

            if (response.Psalm != null)
            {
                psalmReading = GetPsalm(response.Psalm);
            }
            return(psalmReading);
        }