示例#1
0
 public BookStorage(IEvangelionContext evangelionService,
                    IApostolContext apostolService,
                    IOldTestamentContext oldTestamentService,
                    IPsalterContext psalterService,
                    IOktoikhContext oktoikhContext,
                    ITheotokionAppContext theotokionApp,
                    IEasterContext easterContext,
                    IKatavasiaContext katavasia)
 {
     Evangelion    = evangelionService ?? throw new ArgumentNullException("evangelionService");
     Apostol       = apostolService ?? throw new ArgumentNullException("apostolService");
     OldTestament  = oldTestamentService ?? throw new ArgumentNullException("oldTestamentService");
     Psalter       = psalterService ?? throw new ArgumentNullException("psalterService");
     Oktoikh       = oktoikhContext ?? throw new ArgumentNullException("oktoikhContext");
     TheotokionApp = theotokionApp ?? throw new ArgumentNullException("theotokionApp");
     Easters       = easterContext ?? throw new ArgumentNullException("easterContext");
     Katavasia     = katavasia ?? throw new ArgumentNullException("katavasia");
 }
        public static ScheduleService Create(IUnitOfWork unitOfWork, IEasterContext easterContext)
        {
            if (unitOfWork == null)
            {
                throw new ArgumentNullException("unitOfWork");
            }

            BookStorage bookStorage = new BookStorage(new EvangelionContext(unitOfWork),
                                                      new ApostolContext(unitOfWork),
                                                      new OldTestamentContext(unitOfWork),
                                                      new PsalterContext(unitOfWork),
                                                      new OktoikhContext(unitOfWork, easterContext),
                                                      new TheotokionAppContext(unitOfWork),
                                                      easterContext,
                                                      new KatavasiaContext(unitOfWork));

            IRuleSerializerRoot serializerRoot = new RuleSerializerRoot(bookStorage);

            return(new ScheduleService(new RuleHandlerSettingsFactory(), serializerRoot));
        }
示例#3
0
 public DaysFromEaster(string name, IEasterContext context) : base(name)
 {
     easterContext = context ?? throw new ArgumentNullException("IEasterContext");
 }
示例#4
0
 public OktoikhDayService(IUnitOfWork unitOfWork, IEasterContext easterContext) : base(unitOfWork, easterContext)
 {
 }
示例#5
0
 public OktoikhContext(IUnitOfWork unitOfWork, IEasterContext easterContext) : base(unitOfWork)
 {
     this.easterContext = easterContext ?? throw new ArgumentNullException("IEasterContext");
 }
示例#6
0
 public ModifyReplacedDay(string name, IEasterContext context) : base(name)
 {
     EasterContext = context ?? throw new ArgumentNullException("IEasterContext");
 }