Exemplo n.º 1
0
 public BooksController(IBookService bookService,
                        IReserveService reserveService, IAuthorService authorService, IBookIdService bookIdService)
 {
     this.bookService    = bookService;
     this.reserveService = reserveService;
     this.authorService  = authorService;
     this.bookIdService  = bookIdService;
 }
Exemplo n.º 2
0
 public ReserveController(
     IReserveService reserveService,
     IReserveRepository reserveRepository,
     PaginationConfiguration paginationConfiguration)
 {
     _reserveService          = reserveService;
     _reserveRepository       = reserveRepository;
     _paginationConfiguration = paginationConfiguration;
 }
Exemplo n.º 3
0
        public RentService(
            IDepositCalculator depositCalculator,
            IRepository <Rent> rentRepository,
            IRentSumCalculate rentSumCalculate,
            IRepository <Reserve> reserveRepository,
            IReserveService reserveService)
        {
            if (depositCalculator == null)
            {
                throw new ArgumentNullException(nameof(depositCalculator));
            }

            if (rentRepository == null)
            {
                throw new ArgumentNullException(nameof(rentRepository));
            }

            _depositCalculator = depositCalculator;
            _rentRepository    = rentRepository;
            _rentSumCalculate  = rentSumCalculate;
            _reserveRepository = reserveRepository;
            _reserveService    = reserveService;
        }
Exemplo n.º 4
0
 public ReservesController(IReserveService ReserveService)
 {
     _ReserveService = ReserveService;
 }
Exemplo n.º 5
0
 public RoomController(IReserveService reserve, UserManager <User> userManager)
 {
     this.reserve     = reserve;
     this.userManager = userManager;
 }
 public ReserveController(IUser appUser, INotificator notificador, IReserveRepository reserveRepository, IReserveService reserveService, IMapper mapper) : base(appUser, notificador)
 {
     _mapper            = mapper;
     _reserveService    = reserveService;
     _reserveRepository = reserveRepository;
 }
Exemplo n.º 7
0
 public HomeController(IUserService user, IRoomService rooms, IReserveService reserve)
 {
     this.user    = user;
     this.rooms   = rooms;
     this.reserve = reserve;
 }
 public ReserveBikeCommand(IReserveService reserveService)
 {
     _reserveService = reserveService;
 }
Exemplo n.º 9
0
 public ReserveController(ILogger <ReserveController> logger, IReserveService reserveService)
 {
     _logger  = logger;
     _service = reserveService;
 }
 public GetOpenReserveByBikeQuery(IReserveService reserveservice)
 {
     _reserveService = reserveservice;
 }