Esempio n. 1
0
 public BooksController(IUnitOfWork unitOfWork, IBookRepositoryService bookRepositoryService,
                        IRentBookRepositoryService rentBookRepositoryService, IBookRatingRepositoryService bookRatingRepositoryService)
 {
     this.unitOfWork                  = unitOfWork;
     this.bookRepositoryService       = bookRepositoryService;
     this.rentBookRepositoryService   = rentBookRepositoryService;
     this.bookRatingRepositoryService = bookRatingRepositoryService;
 }
Esempio n. 2
0
 public UsersController(IUnitOfWork unitOfWork, IUserRepositoryService userRepositoryService, ITokenProvider tokenProvider, IUserManagementService userManagementService, IRentBookRepositoryService rentBookRepositoryService)
 {
     this.unitOfWork                = unitOfWork;
     this.userRepositoryService     = userRepositoryService;
     this.tokenProvider             = tokenProvider;
     this.userManagementService     = userManagementService;
     this.rentBookRepositoryService = rentBookRepositoryService;
 }