private static void AddNewRentTest(IRentService rentService) { //Add new rent...... var result = rentService.Add(exRent); Console.WriteLine(result.Message); }
public Count(IBookService book, IRentService rent, IMemberService member, IUserService user) { rentService = rent; bookService = book; memberService = member; userService = user; }
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; }
public ManagementController(ICarService servCar, IPlaceService servPlace, IManufacturerService servMan, IRentService servRent) { carService = servCar; rentService = servRent; placeService = servPlace; manufacurerService = servMan; }
public RentServiceTest() { _repo = new Mock <IRentRepository>(); _helper = new Mock <IRentHelper>(); _validation = new Mock <IRentValidationHelper>(); _service = new RentService(_repo.Object, _helper.Object, _validation.Object); }
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; }
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; }
public void SetupFixure() { var container = new UnityContainer(); Bootstrapper.Configure(container); this.domainService = container.Resolve <Services.DomainService>(); this.rentService = container.Resolve <Services.RentService>(); }
static Program() { var container = new UnityContainer(); Bootstrapper.Configure(container); domainService = container.Resolve <DomainService>(); rentService = container.Resolve <RentService>(); }
/// <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; }
/// <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; }
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); }
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-------------"); } }
public AdminController(IRentService rentService) { _rentService = rentService; }
public LogAdminController(IRentService serv) { _rentService = serv; }
public CarsController(IRentService service) { _service = service; }
public HomeController(IRentService rentService) { _rentService = rentService; }
public HomeController(IPlaceService servPlace, IRentService servRent) { placeService = servPlace; rentService = servRent; }
public CarController(IRentService serv) { _rentService = serv; }
public RentController(IRentService _rentService) { this.rentService = _rentService; }
public UserController(IUserService userService, IRentService rentService) { this.userService = userService; this.rentService = rentService; }
public RentController(IRentService rentService) { _rentService = rentService; }
public AlugueisController(IRentService<Rent> rentService) { _rentService = rentService; }
public CoursesController(IRentService svc) { Svc = svc; userId = "ketnda00";//User.Identity.Name; }
public ReturnBikeCommand(IRentService rentService) { _rentService = rentService; }
public RentCommandHandler(IRentService RentService) { _RentService = RentService; }
public RentController(IRentService rentService) { this.rentService = rentService; }
public RentController(IRentService service) : base(service) { _service = service; }
public OrderAdminController(IRentService serv) { _rentService = serv; }