Example #1
0
 /// <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;
 }
Example #2
0
 public BookHistoryDomain()
 {
     _bookHistoryRepository = new BookHistoryRepository();
 }
Example #3
0
 public BookHistoryDomain()
 {
     _bookHistoryRepository = new BookHistoryRepository();
 }
Example #4
0
 public BookHistoryService(IBookHistoryRepository bookAuthRep)
 {
     this.bookAuthRep = bookAuthRep;
 }