public AuthorService(IUnitOfWork <AlejandriaContext> uoW, IOptions <AlejandriaOptions> alejandriaOptions) : base(uoW) { _authorRepository = uoW.Repository <IAuthorRepository>(); _bookRepository = uoW.Repository <IBookRepository>(); _authorBookRepository = uoW.Repository <IAuthorBookRepository>(); _alejandriaOptions = alejandriaOptions.Value; }
private void InitializeAlejandriaOptions(IOptions <AlejandriaOptions> alejandriaOptions) { _alejandriaOptions = new AlejandriaOptions(); _alejandriaOptions.Validity = alejandriaOptions.Value.Validity; }