public ReservationController(IRestaurantService restserv,IReservationService irs, IFriendService ifs,IUserService ius) { this.restaurantService = restserv; this.reservationService = irs; this.friendService = ifs; this.userService = ius; }
public InventoryService(ICalendarService calendarService, IReservationService reservationService) { InventoryRepo = new Repository<RoomTypeInventory>(); CalendarService = calendarService; ReservationService = reservationService; }
public AccountController(IUserService userservice, IDishService dishservice, IGeoCoder geocodeservice, IImageService imageservice, IReservationService reservationservice) { UserSvc = userservice; DishSvc = dishservice; GeocodeSvc = geocodeservice; ImageSvc = imageservice; ReservationSvc = reservationservice; }
public OnlineOrder(Cart cart, PaymentDetails paymentDetails) : base(cart) { _paymentDetails = paymentDetails; _paymentProcessor = new PaymentProcessor(); _reservationService = new ReservationService(); _notificationService = new NotificationService(); }
public HomePageViewModel(IMasterNavigationService masterNavigationService, IReservationService reservationService, IPageService pageService, IUserService userService, IPersistenceService persistenceService) { MyReservationsViewModel = new MyReservationsViewModel(pageService, _uniqueExecutionTaskQueue); _masterNavigationService = masterNavigationService; _reservationService = reservationService; _persistenceService = persistenceService; _pageService = pageService; _userService = userService; OnBackCommand = new Command(async() => await StayOnPage()); }
public BoatOverviewWindow(IBoatService boatService, WindowManager windowManager, IReservationService reservationService, IMailService mailService) { _windowManager = windowManager; _reservationService = reservationService; _boatService = boatService; _mailService = mailService; InitializeComponent(); SetBoatData(boatService); DeviceDataGrid.ItemsSource = Items; }
public ScheduleService( IMatchRepository matchRepo, IStadiumRepository stadiumRepo, IReservationRepository reservationRepository, IReservationService resService) { _matchRepo = matchRepo; _stadiumRepo = stadiumRepo; _reservationRepository = reservationRepository; _resService = resService; }
public Schedule( IRunRepository runRepo, ITrainRepository trainRepo, IReservationRepository reservationRepository, IReservationService resService) { _runRepo = runRepo; _trainRepo = trainRepo; _reservationRepository = reservationRepository; _resService = resService; }
/// <summary> /// creates an hotel reservation system and assigns rooms to hotel /// </summary> /// <param name="roomCount">hotel will have 'roomCount' rooms & hotel reservation system will be in charge of 'roomCount' rooms</param> public Hotel(int roomCount) { this.rooms = new List <Room>(); this.roomService = new RoomService(); //get rooms of particular type rooms = roomService.PrepareRooms(RoomType.SingleRoom, roomCount); //init reservation service reservationSystem = new HotelReservationService(roomCount); }
public BorrowManager(IBorrowService service, IMapper mapper, IStudentService studentService, IDepartmentService departmentService, IAdminService adminService, IBookService bookService, IReservationService reservationService) { _service = service; _mapper = mapper; _studentService = studentService; _departmentService = departmentService; _adminService = adminService; _bookService = bookService; _reservationService = reservationService; }
public async Task CancelReservation_WithInvalidReservationId_ShouldThrowArgumentNullException() { var context = ReserveTableDbContextInMemoryFactory.InitializeContext(); this.reservationService = new ReservationService(context); await SeedData(context); string reservationId = "2"; await Assert.ThrowsAsync <ArgumentNullException>(() => reservationService.CancelReservation(reservationId)); }
public TicketsController( ITicketsService ticketsService, IMapper mapper, ICityService cityService, IReservationService reservationService) { _ticketsService = ticketsService; _mapper = mapper; _cityService = cityService; _reservationService = reservationService; }
public OnlineOrder(Cart cart, PaymentDetails paymentDetails, IPaymentProcessor paymentProcessor, IReservationService reservationService, INotificationService notificationService) : base(cart) { this._paymentDetails = paymentDetails; this._paymentProcessor = paymentProcessor; this._reservationService = reservationService; this._notificationService = notificationService; }
public OnlineOrder(Refactored.Cart cart, PaymentDetails paymentDetails, IPaymentProcessor paymentProcessor, IReservationService reservationService, INotificationService notificationService) : base(cart) { _paymentDetails = paymentDetails; _paymentProcessor = paymentProcessor; _reservationService = reservationService; _notificationService = notificationService; }
public void Setup() { reservationList = TestData.GetReservationList(); equipmentList = TestData.GetEquipmentList(); inventoryList = TestData.GetInventoryList(); unitOfWork = new MockUnitOfWork(); reservationRepository = new MockReservationRepository(reservationList); equipmentRepository = new MockEquipmentRepository(equipmentList); inventoryRepository = new MockInventoryRepository(inventoryList); reservationService = new ReservationService(reservationRepository, equipmentRepository, inventoryRepository, unitOfWork); }
public ReservationController(IDoctorRepository doctorRepo, IReservationService reservationService, IPatientService patientService, IPatientRepository patientRepo, IReservationRepository reservationRepo, IAppointmentService appointmentService, IScheduleRepository scheduleRepo, IScheduleService scheduleService) { _doctorRepo = doctorRepo; _reservationService = reservationService; _patientService = patientService; _patientRepo = patientRepo; _reservationRepo = reservationRepo; _appointmentService = appointmentService; _scheduleRepo = scheduleRepo; _scheduleService = scheduleService; }
public EditModel(ICarService carService, IReservationService reservationService, ILogger <EditModel> logger, IEmailSender emailSender, IRazorViewToStringRender render, UserManager <User> userManager , ICloudStorageService cloudStorageService) { _carService = carService; _reservationService = reservationService; _logger = logger; _emailSender = emailSender; _render = render; _userManager = userManager; _cloudStorageService = cloudStorageService; }
public AppointmentsViewModelFactory( IReservationService reservationService, IScheduleService scheduleService, IPatientService patientService, ISpecializationService specializationService, IDoctorService doctorService) { _reservationService = reservationService; _scheduleService = scheduleService; _patientService = patientService; _specializationService = specializationService; _doctorService = doctorService; }
public ReservationController(IReservationService IReservationService, IRoomTypeService IRoomTypeService, IHotelService IHotelService, IRoomService IRoomService, IPaymentService IPaymentService, UserManager <User> userManager, IUserService IUserService) { this._userManager = userManager; this.IReservationService = IReservationService; this.IRoomTypeService = IRoomTypeService; this.IHotelService = IHotelService; this.IRoomService = IRoomService; this.IPaymentService = IPaymentService; this.IUserService = IUserService; }
public CreateModel(UserManager <User> userManager, IReservationService reservationService, IVehicleModelService vehicleModelService, IAddressService addressService, ILogger <CreateModel> logger, IStringLocalizerFactory factory) { _userManager = userManager; _reservationService = reservationService; _vehicleModelService = vehicleModelService; _addressService = addressService; _logger = logger; var type = typeof(IdentityResource); var assemblyName = new AssemblyName(type.GetTypeInfo().Assembly.FullName); _localizer = factory.Create("IdentityResource", assemblyName.Name); }
public HomeController(IStadiumRepository stadiumRepo, IMatchRepository matchRepo, IScheduleService scheduleService, IReservationService reservationService, IPriceCalculationStrategy priceCalculationStrategy, ITicketService ticketService, ITicketRepository ticketRepo, IReservationRepository reservationRepo) { _stadiumRepo = stadiumRepo; _matchRepo = matchRepo; _scheduleService = scheduleService; _reservationService = reservationService; _priceCalculationStrategy = priceCalculationStrategy; _ticketService = ticketService; _ticketRepo = ticketRepo; _reservationRepo = reservationRepo; }
public HotelController(IHotelService hotelService, UserManager <User> userManager, IImageService imageService, IRoomService roomService, IBedService bedService, IRoomBedService roomBedService, IHotelPropertyTypeService hotelPropertyTypeService, IDateTimeService dateTimeService, IMapper mapper, IReviewService reviewService, IReservationService reservationService) { this.hotelService = hotelService; this.userManager = userManager; this.imageService = imageService; this.roomService = roomService; this.bedService = bedService; this.roomBedService = roomBedService; this.hotelPropertyTypeService = hotelPropertyTypeService; this.dateTimeService = dateTimeService; this.mapper = mapper; this.reviewService = reviewService; this.reservationService = reservationService; }
public async Task CancelReservation_WithData_ShouldReturnTrue() { string errorMessage = "ReservationService CancelReservation() method does not work properly."; var context = ReserveTableDbContextInMemoryFactory.InitializeContext(); this.reservationService = new ReservationService(context); await SeedData(context); string reservationId = "1"; var actualResult = await reservationService.CancelReservation(reservationId); Assert.True(actualResult, errorMessage); }
public OrderController(IPhoneRepository phoneRepository, IReservationService resServ, IOrderService orderServ, IPriceCalculationStrategy priceCalcStrategy, IReservationRepository reservationRepo, IOrderRepository orderRepository) { _phoneRepository = phoneRepository; _reservationService = resServ; _orderService = orderServ; _priceCalculationStrategy = priceCalcStrategy; _reservationRepository = reservationRepo; _orderRepository = orderRepository; }
public ReservationsController(IReservationService reservationService, IUserService userService, IRoomService roomService, ISettingService settingService, UserManager<ApplicationUser> userManager, IMemoryCache memoryCache) { this.reservationService = reservationService; this.userService = userService; this.roomService = roomService; this.settingService = settingService; this.userManager = userManager; this.memoryCache = memoryCache; }
public ReservationController( IRoomDac roomDac, IReservationDac reservationDac, IRoomActivatedDac roomActivatedDac, IReservationService reservationService, IRoomActService roomActService) { this.roomDac = roomDac; this.reservationDac = reservationDac; this.roomActivatedDac = roomActivatedDac; this.now = DateTime.Now; this.reservationService = reservationService; this.roomActService = roomActService; }
public ReservationCreationController(IReservationService reservationService, IGuestService guestService, IPromoCodeService promoCodeService, IRoomGateway roomGateway, IReservationDirector reservationDirector) { // Mod 1 Team 4 Services _reservationService = reservationService; _promoCodeService = promoCodeService; _reservationDirector = reservationDirector; // Calling Mod 1 Team 9 Service - for guest details _guestService = guestService; // Calling Mod 1 Team 6 Room Service - for room instance _roomGateway = roomGateway; }
public RunController(ITicketRepository tick, IRunRepository run, IReservationService resServ, ITicketService tickServ, ICalculationFactory calcFact, IReservationRepository reservationRepo, ITrainRepository trainRepo) { _tickRepo = tick; _runRepo = run; _resServ = resServ; _tickServ = tickServ; _calcFact = calcFact; _reservationRepo = reservationRepo; _trainRepo = trainRepo; }
public async Task IsDateValid_WithInvalidData_ShouldReturnFalse() { string errorMessage = "ReservationService IsDateValid() method does not work properly."; var context = ReserveTableDbContextInMemoryFactory.InitializeContext(); this.reservationService = new ReservationService(context); await SeedData(context); DateTime invalidDateTime = DateTime.Now.AddDays(-1); var actualResult = await reservationService.IsDateValid(invalidDateTime); Assert.False(actualResult, errorMessage); }
public RunController(ITicketRepository tick, IRunRepository run, IReservationService resServ, ITicketService tickServ, IPriceCalculationStrategy priceCalcStrategy, IReservationRepository reservationRepo, ITrainRepository trainRepo) { _tickRepo = tick; _runRepo = run; _resServ = resServ; _tickServ = tickServ; _priceCalc = priceCalcStrategy; _reservationRepo = reservationRepo; _trainRepo = trainRepo; }
public ReservationController(IReservationService reservationService, IPermissionService permissionService) { if (reservationService == null) { throw new ArgumentNullException(nameof(reservationService)); } if (permissionService == null) { throw new ArgumentNullException(nameof(permissionService)); } _reservationService = reservationService; _permissionService = permissionService; }
public RunController(ITicketRepository tick, IRunRepository run, IReservationService resServ, ITicketService tickServ, IStrategyFactory strategyFactory, IReservationRepository reservationRepo, ITrainRepository trainRepo) { _tickRepo = tick; _runRepo = run; _resServ = resServ; _tickServ = tickServ; _strategyFactory = strategyFactory; _reservationRepo = reservationRepo; _trainRepo = trainRepo; }
public SelectViewModel(ListRoomManager listRoomManager, IProfileService profileService, IReservationService reservationServise, INavigationService navigationService, SelectModel model) : base(navigationService) { this.model = model; this.service = listRoomManager; this.reservationServise = reservationServise; this.profileService = profileService; this.GoToMyReservation = new Command(this.GetMyReservation); this.GoToSearch = new Command(this.Search); this.GoToCalendarCommand = new Command(this.GoToCalendar); }
public ReservationScreen(IReservationService reservationService, IMailService mailService, WindowManager windowManager) { _reservationService = reservationService; _mailService = mailService; _windowManager = windowManager; InitializeComponent(); When.SelectedDate = DateTime.Today; UpdateDictionary(); SetReservationData(); DeviceDataGrid.ItemsSource = Items; }
public CachingReservationService(IReservationService core, TimeSpan timeout) { _core = core; _timeout = timeout; }
// // GET: /Reservation/ public ReservationController(IReservationService reservationService) { _reservationService = reservationService; }
private Reservation(IReservationService reservationService) { _reservationService = reservationService; }
public ReservationController(IReservationService reservationservice, IUserService userservice, IDishService dishservice) { ReservationSvc = reservationservice; UserSvc = userservice; DishSvc = dishservice; }
public ReservationsController(IReservationService ReservationService) { this.reservationService = ReservationService; }
public UserController(IUserService userS, IFriendService friendS, IReservationService irs) { this.userService = userS; this.friendService = friendS; this.reservationService = irs; }