コード例 #1
0
 public CustomersController(IRentingService rentingService, IUserService userService, ILoggingService logger, IMapper mapper, IOMDbAPIService OMDbAPI)
 {
     _rentingService = rentingService;
     _userService    = userService;
     _logger         = logger;
     _mapper         = mapper;
     _OMDbAPI        = OMDbAPI;
 }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the MainWindowViewModel class.
        /// </summary>
        public MainWindowViewModel(IRentingService rentingService, IMovieService movieService, IMemberService memberService, IMessageService messageService)
        {
            _rentingService = rentingService;
            _movieService   = movieService;
            _memberService  = memberService;
            _messageService = messageService;

            Initialize();
        }
コード例 #3
0
 public RentingsController(IRentingService rentingService, ICopyService copyService, IUserService userService, IMovieService movieService, IMapper mapper, ILoggingService logger, IOMDbAPIService OMDbAPI)
 {
     _rentingService = rentingService;
     _copyService    = copyService;
     _userService    = userService;
     _movieService   = movieService;
     _mapper         = mapper;
     _logger         = logger;
     _OMDbAPI        = OMDbAPI;
 }
コード例 #4
0
 public RentingController(IRentingService rentingService)
 {
     this.rentingService = rentingService;
 }
コード例 #5
0
 public RentalServiceTests()
 {
     rentingService = CreateRentalService();
     rental         = CreateRental();
 }