Exemplo n.º 1
0
        private static void AddNewRentTest(IRentService rentService)
        {
            //Add new rent......
            var result = rentService.Add(exRent);

            Console.WriteLine(result.Message);
        }
Exemplo n.º 2
0
 public Count(IBookService book, IRentService rent, IMemberService member, IUserService user)
 {
     rentService   = rent;
     bookService   = book;
     memberService = member;
     userService   = user;
 }
Exemplo n.º 3
0
 public CustomersController()
 {
     customerService = Business.IOCUtil.Resolve <ICustomerService>();
     rentService     = Business.IOCUtil.Resolve <IRentService>();
     vehicleService  = Business.IOCUtil.Resolve <IVehicleService>();
     lastKmService   = Business.IOCUtil.Resolve <ILastKmService>();
 }
 public NotificationsController(INotificationService notificationService, IUserService userService, IOfferService offerService, IRentService rentService)
 {
     _notificationService = notificationService;
     _userService         = userService;
     _offerService        = offerService;
     _rentService         = rentService;
 }
Exemplo n.º 5
0
 public ManagementController(ICarService servCar, IPlaceService servPlace, IManufacturerService servMan, IRentService servRent)
 {
     carService         = servCar;
     rentService        = servRent;
     placeService       = servPlace;
     manufacurerService = servMan;
 }
Exemplo n.º 6
0
 public RentServiceTest()
 {
     _repo       = new Mock <IRentRepository>();
     _helper     = new Mock <IRentHelper>();
     _validation = new Mock <IRentValidationHelper>();
     _service    = new RentService(_repo.Object, _helper.Object, _validation.Object);
 }
Exemplo n.º 7
0
 public ReturnBikeCommand(IRentService rentService,
                          IRepository <Bike> bikeRepository,
                          IRepository <RentPoint> RentPointRepository)
 {
     _rentService         = rentService;
     _bikeRepository      = bikeRepository;
     _rentPointRepository = RentPointRepository;
 }
 public RentsController(IRentService rentService, ICarService carService, IMemoryCache cache, IAccountService accountService, UserManager <User> userManager)
 {
     _rentService    = rentService;
     _carService     = carService;
     _cache          = cache;
     _accountService = accountService;
     _userManager    = userManager;
 }
 public RentedItemsService(IUserService userService, RentingContext context,
                           IItemService itemService, IRentService rentService)
 {
     _userService = userService;
     _context     = context;
     _itemService = itemService;
     _rentService = rentService;
 }
Exemplo n.º 10
0
 public RentController(IRentService service, ICustomerService _customer, IBranchService _branch, ICompanyService _company, ICarService _car, IUserService srvc)
 {
     _service      = service;
     customer      = _customer;
     branch        = _branch;
     company       = _company;
     car           = _car;
     _IuserService = srvc;
 }
Exemplo n.º 11
0
        public void SetupFixure()
        {
            var container = new UnityContainer();

            Bootstrapper.Configure(container);

            this.domainService = container.Resolve <Services.DomainService>();
            this.rentService   = container.Resolve <Services.RentService>();
        }
Exemplo n.º 12
0
        static Program()
        {
            var container = new UnityContainer();

            Bootstrapper.Configure(container);

            domainService = container.Resolve <DomainService>();
            rentService   = container.Resolve <RentService>();
        }
Exemplo n.º 13
0
 /// <summary>
 /// Create services and mappers for work.
 /// </summary>
 /// <param name="clientService">Clent service</param>
 /// <param name="identityMapperDM">Identity mapper</param>
 /// <param name="rentMapperDM">Rent mapper</param>
 /// <param name="rentService">Rent service</param>
 /// <param name="log">Log service</param>
 public ClientController(IClientService clientService, IIdentityMapperDM identityMapperDM,
                         IRentMapperDM rentMapperDM, IRentService rentService, ILogWriter log)
 {
     _clientService    = clientService;
     _identityMapperDM = identityMapperDM;
     _rentMapperDM     = rentMapperDM;
     _rentService      = rentService;
     _logWriter        = log;
 }
Exemplo n.º 14
0
 /// <summary>
 /// Create services and mappers for work.
 /// </summary>
 /// <param name="adminService">Admin service</param>
 /// <param name="identityMapperDM">Identity mapper</param>
 /// <param name="rentMapperDM">Rent mapper</param>
 /// <param name="rentService">Rent service</param>
 /// <param name="log">Log service</param>
 public AdminController(IAdminService adminService, IIdentityMapperDM identityMapperDM,
                        IRentMapperDM rentMapperDM, IRentService rentService, ILogWriter log)
 {
     _adminService     = adminService;
     _identityMapperDM = identityMapperDM;
     _rentMapperDM     = rentMapperDM;
     _rentService      = rentService;
     _logWriter        = log;
 }
Exemplo n.º 15
0
        private static void RentDetailsDtoTest(IRentService rentService)
        {
            var rentDetails = rentService.GetAllNotReturned(DateTime.Now);

            foreach (var rent in rentDetails.Data)
            {
                Console.WriteLine("{0} - {1} - {2} - {3} - {4} - {5}", rent.Id, rent.UserName, rent.CarDetails,
                                  rent.RentDate, rent.EstReturnDate, rent.ActReturnDate);
            }
            Console.WriteLine("Total of {0} cars in the list", rentDetails.Data.Count);
        }
Exemplo n.º 16
0
        private static void RentServiceTest(IRentService rentService)
        {
            //Rents
            int counter = 0;

            Console.WriteLine("\nRent entries............................");
            foreach (var rent in rentService.GetAll().Data)
            {
                Console.WriteLine(++counter + "\t" + rent.CarId + " " + rent.CustomerId + " " +
                                  rent.RentDate + " " + rent.EstReturnDate + " " + rent.ActReturnDate);
            }
            if (counter != 23)
            {
                Console.WriteLine("---------------------ERROR------Must be 23 rents in the list-------------");
            }
        }
Exemplo n.º 17
0
 public AdminController(IRentService rentService)
 {
     _rentService = rentService;
 }
Exemplo n.º 18
0
 public LogAdminController(IRentService serv)
 {
     _rentService = serv;
 }
Exemplo n.º 19
0
 public CarsController(IRentService service)
 {
     _service = service;
 }
Exemplo n.º 20
0
 public HomeController(IRentService rentService)
 {
     _rentService = rentService;
 }
Exemplo n.º 21
0
 public HomeController(IPlaceService servPlace, IRentService servRent)
 {
     placeService = servPlace;
     rentService  = servRent;
 }
Exemplo n.º 22
0
 public CarController(IRentService serv)
 {
     _rentService = serv;
 }
Exemplo n.º 23
0
 public RentController(IRentService _rentService)
 {
     this.rentService = _rentService;
 }
Exemplo n.º 24
0
 public UserController(IUserService userService,
                       IRentService rentService)
 {
     this.userService = userService;
     this.rentService = rentService;
 }
Exemplo n.º 25
0
 public RentController(IRentService rentService)
 {
     _rentService = rentService;
 }
Exemplo n.º 26
0
 public AlugueisController(IRentService<Rent> rentService)
 {
     _rentService = rentService;
 }
Exemplo n.º 27
0
 public CoursesController(IRentService svc)
 {
     Svc    = svc;
     userId = "ketnda00";//User.Identity.Name;
 }
 public ReturnBikeCommand(IRentService rentService)
 {
     _rentService = rentService;
 }
Exemplo n.º 29
0
 public RentCommandHandler(IRentService RentService)
 {
     _RentService = RentService;
 }
Exemplo n.º 30
0
 public RentController(IRentService rentService)
 {
     this.rentService = rentService;
 }
Exemplo n.º 31
0
 public RentController(IRentService service) : base(service)
 {
     _service = service;
 }
 public OrderAdminController(IRentService serv)
 {
     _rentService = serv;
 }