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)); }
public DaysFromEaster(string name, IEasterContext context) : base(name) { easterContext = context ?? throw new ArgumentNullException("IEasterContext"); }
public OktoikhDayService(IUnitOfWork unitOfWork, IEasterContext easterContext) : base(unitOfWork, easterContext) { }
public OktoikhContext(IUnitOfWork unitOfWork, IEasterContext easterContext) : base(unitOfWork) { this.easterContext = easterContext ?? throw new ArgumentNullException("IEasterContext"); }
public ModifyReplacedDay(string name, IEasterContext context) : base(name) { EasterContext = context ?? throw new ArgumentNullException("IEasterContext"); }