Exemplo n.º 1
0
 public BookLoanService(IBookLoanRepository bookLoanRepository, IUserRepository userRepository, IBookInventoryRepository bookInventoryRepository, IMapper mapper)
 {
     _bookLoanRepository      = bookLoanRepository;
     _userRepository          = userRepository;
     _bookInventoryRepository = bookInventoryRepository;
     _mapper = mapper;
 }
 public RequestLoanCommandHandler(IPersonRepository personRepository, IBookRepository bookRepository, IBookLoanRepository bookLoanRepository, IEventDispatcher eventDispatcher)
 {
     _personRepository   = personRepository;
     _bookRepository     = bookRepository;
     _bookLoanRepository = bookLoanRepository;
     _eventDispatcher    = eventDispatcher;
 }
Exemplo n.º 3
0
 public BookLoanCommandHandler(IBookLoanService bookLoanService,
                               IUserRepository userRepository,
                               IBookLoanRepository bookLoanRepository,
                               IBookRepository bookRepository,
                               IMapper <BookLoan, BookLoanInfoDTO> bookLoanMapper)
 {
     _bookLoanService    = bookLoanService;
     _userRepository     = userRepository;
     _bookLoanRepository = bookLoanRepository;
     _bookLoanMapper     = bookLoanMapper;
     _bookRepository     = bookRepository;
 }
Exemplo n.º 4
0
 public ReturnBookCommandHandler(IBookLoanRepository bookLoanRepository)
 {
     _bookLoanRepository = bookLoanRepository;
 }
Exemplo n.º 5
0
 public BookReturnedEventHandler(IBookLoanRepository bookLoanRepository,
                                 IBookLoanService bookLoanService)
 {
     _bookLoanRepository = bookLoanRepository;
     _bookLoanService    = bookLoanService;
 }