Пример #1
0
 public void Setup()
 {
     _context                = SetTestDb.CreateContextForInMemory();
     _reservationServices    = new ReservationServices(_context);
     _contactService         = new ContactService(_context);
     _reservationsController = new ReservationsController(_context, _reservationServices);
 }
        public ReservationController(IArticleServices articleServices,
                                     IReservationServices reservationServices,
                                     IMapper mapper)
        {
            _reservationServices = reservationServices;

            _mapper = mapper;
        }
        public ResultSearchYourReservationViewModel(string UserName, string StoreName, DateTime StartDate, DateTime EndDate)
        {
            _reservationServices = DependencyService.Get <IReservationServices>();

            Items = new ObservableCollection <ReservationDto>();

            ItemTapped = new Command <ReservationDto>(OnItemSelected);

            LoadItemsCommand = new Command(async() => await ExecuteLoadItemsCommand(UserName, StoreName, StartDate, EndDate));
        }
        public BookingViewModel(FieldDto fieldDto, string storeName)
        {
            _reservationServices = DependencyService.Get <IReservationServices>();

            _fieldServices = DependencyService.Get <IFieldServices>();

            BookCommand = new Command(async() => await ExecuteBookCommand(fieldDto));

            Task.Run(async() => await ExecuteLoadItemsCommand(fieldDto, StoreName));
        }
        public ReservationController()
        {
            var dbFactory = new DatabaseFactory();

            this.reservationRepository = new Repository <Domain.Reservation>(dbFactory);
            this.userRepository        = new Repository <Domain.User>(dbFactory);
            this.timetableRepository   = new Repository <Domain.Timetable>(dbFactory);
            //this.studioRepository = new Repository<Domain.Studio>(dbFactory);
            this.reservationServices = new ReservationServices(dbFactory);
        }
Пример #6
0
 public VideosController(IVideoCategoryServices categoryServices, IVideoServices videoServices,
                         IReservationServices reservationServices, ICacheService cacheServices,
                         ILoggingService logger, IMapper mapper)
 {
     _categoryServices    = categoryServices;
     _videoServices       = videoServices;
     _reservationServices = reservationServices;
     _cacheServices       = cacheServices;
     _logger = logger;
     _mapper = mapper;
 }
Пример #7
0
        public MonthGraphViewModel(ObservableCollection <ReservationDto> items)
        {
            _reservationServices = DependencyService.Get <IReservationServices>();

            Model = new PlotModel
            {
                LegendPlacement       = LegendPlacement.Outside,
                LegendPosition        = LegendPosition.BottomCenter,
                LegendOrientation     = LegendOrientation.Horizontal,
                LegendBorderThickness = 0,
                LegendPadding         = 10,
            };

            LoadGraphCommand = new Command(async() => await OnLoadGraphCommand(selectMonth.Month));
        }
 public ReservationController(ApplicationDbContext context, IReservationServices reservationServices)
 {
     this.context             = context;
     this.reservationServices = reservationServices;
 }
Пример #9
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context"></param>
 /// <param name="reservationService"></param>
 public ReservationsController(ApplicationDbContext context, IReservationServices reservationService)
 {
     _context            = context;
     _reservationService = reservationService;
 }
 public ReservationsController(IReservationServices service)
 {
     _services = service;
 }
 public ReservationController(IReservation reservation, IReservationCollection reservationCollection, IReservationServices reservationservices)
 {
     _reservationlogic = reservationCollection;
     _reservationmodel = reservation;
     services = reservationservices;
 }