/// <summary> /// Initializes a new instance of the <see cref="BooksController"/> class. /// </summary> /// <param name="bookRepository">The book repository. This will be injected.</param> /// <param name="bookHistoryRepository">The book history repository. This will be injected.</param> /// <param name="authRepository">The authentication repo. This will be injected.</param> /// <param name="personRepository">The person repository. This will be injected.</param> /// <param name="bookOrderRepository">The book order repository. This will be injected.</param> public BooksController( IBookRepository bookRepository, IBookHistoryRepository bookHistoryRepository, IAuthenticationRepository authRepository, IPersonRepository personRepository, IBookOrderRepository bookOrderRepository) { this._bookRepository = bookRepository; this._bookHistoryRepository = bookHistoryRepository; this._authRepository = authRepository; this._personRepository = personRepository; this._bookOrderRepository = bookOrderRepository; }
public BookHistoryDomain() { _bookHistoryRepository = new BookHistoryRepository(); }
public BookHistoryService(IBookHistoryRepository bookAuthRep) { this.bookAuthRep = bookAuthRep; }