public ReservationService(IMapper mapper, IReservationRepository reservationRepository, IRoomsService roomsService, IEmailService emailService)
 {
     _mapper = mapper;
     _reservationRepository = reservationRepository;
     _roomsService          = roomsService;
     _emailService          = emailService;
 }
Esempio n. 2
0
        public AddRoomPresenter(IAddRoomView view,
                                IRoomFactory roomFactory,
                                IRoomsService roomsService,
                                IImageUploader imageUploader) : base(view)
        {
            if (roomsService == null)
            {
                throw new ArgumentNullException("Rooms service cannot be null.");
            }

            if (roomFactory == null)
            {
                throw new ArgumentNullException("Room factory cannot be null.");
            }

            if (imageUploader == null)
            {
                throw new ArgumentNullException("Image uploader cannot be null.");
            }

            this.roomsService         = roomsService;
            this.roomFactory          = roomFactory;
            this.imageUploader        = imageUploader;
            this.View.AddingRoom     += OnAddingRoom;
            this.View.UploadingImage += OnUploadingImage;
        }
Esempio n. 3
0
 public RoomsController(
     IRoomsService roomsService,
     IMapper mapper)
 {
     _roomsService = roomsService;
     _mapper       = mapper;
 }
Esempio n. 4
0
 //  ICustomerService sp;
 public UserController()
 {
     this.userservice     = Injector.Container.Resolve <IUserService>();
     this.roomservice     = Injector.Container.Resolve <IRoomsService>();
     this.customerservice = Injector.Container.Resolve <ICustomerService>();
     this.contactservice  = Injector.Container.Resolve <IContactService>();
 }
 //  ICustomerService sp;
 public UserController()
 {
     this.service = Injector.Container.Resolve <IUserService>();
     this.room    = Injector.Container.Resolve <IRoomsService>();
     this.s       = Injector.Container.Resolve <ICustomerService>();
     // this.sp = Injector.Container.Resolve<ICustomerService>();
 }
Esempio n. 6
0
 public RoomsController(
     IRoomsService roomsService,
     IRoomTypesService roomTypesService)
 {
     this.roomsService     = roomsService;
     this.roomTypesService = roomTypesService;
 }
        public EditProductPresenter(IEditProductView view,
                                    IProductsService productsService,
                                    ICategoriesService categoriesService,
                                    IRoomsService roomsService,
                                    IImageUploader imageUploader) : base(view)
        {
            if (productsService == null)
            {
                throw new ArgumentNullException("Products service cannot be null.");
            }

            if (categoriesService == null)
            {
                throw new ArgumentNullException("Categories service cannot be null.");
            }

            if (roomsService == null)
            {
                throw new ArgumentNullException("Rooms service cannot be null.");
            }

            if (imageUploader == null)
            {
                throw new ArgumentNullException("Image uploader cannot be null.");
            }

            this.productsServices      = productsService;
            this.categoriesServices    = categoriesService;
            this.roomsServices         = roomsService;
            this.imageUploader         = imageUploader;
            this.View.Initial         += OnInitial;
            this.View.EdittingProduct += OnEdittingProduct;
            this.View.UploadingImage  += OnUploadingImage;
        }
Esempio n. 8
0
 public Real()
 {
     authenticationService = new AuthenticationService();
     profileService        = new ProfileService();
     roomService           = new RoomsService();
     _cache = CommonCache.Instance;
 }
Esempio n. 9
0
        public RoomsController(IMapper mapper)
        {
            this.mapper = mapper;

            roomsService = ServiceProxy.Create <IRoomsService>(
                new Uri("fabric:/AffittaCamere/RoomsStateful")
                , new Microsoft.ServiceFabric.Services.Client.ServicePartitionKey(0));
        }
Esempio n. 10
0
 public RoomController()
 {
     _roomsService      = new RoomsService();
     _centroRepository  = new CentroRepository();
     _centroService     = new CentroService(_centroRepository);
     _usuarioRepository = new UsuarioRepository();
     _usuarioService    = new UsuarioService(_usuarioRepository);
 }
 public RoomsController(
     IRoomsService roomsService,
     IRoomTypesService roomTypesService,
     UserManager <ApplicationUser> userManager)
 {
     this.roomsService     = roomsService;
     this.roomTypesService = roomTypesService;
     this.userManager      = userManager;
 }
Esempio n. 12
0
 public ContestsController(
     IContestsService contestsService,
     IRoomsService roomsService,
     UserManager <ApplicationUser> userManager)
 {
     this.contestsService = contestsService;
     this.roomsService    = roomsService;
     this.userManager     = userManager;
 }
Esempio n. 13
0
 public ReservedRoomsViewComponent(
     IReservationsService reservationsService,
     IRoomsService roomsService,
     IRoomTypesService roomTypesService)
 {
     this.reservationsService = reservationsService;
     this.roomsService        = roomsService;
     this.roomTypesService    = roomTypesService;
 }
Esempio n. 14
0
 public BaseFooCalculator(IConfirmBookingService confirmBookingService, IFeaturesService featuresService, IInitialResponseService initialResponseService,
                          IRoomsFeatureService roomsFeatureService, IRoomsService roomsService)
 {
     _confirmBookingService  = confirmBookingService;
     _featuresService        = featuresService;
     _initialResponseService = initialResponseService;
     _roomsFeatureService    = roomsFeatureService;
     _roomsService           = roomsService;
 }
Esempio n. 15
0
 public MediaController(
     IUsersService users,
     IRoomsService rooms,
     IMapper mapper)
 {
     this.Users = users;
     this.Rooms = rooms;
     this.Mapper = mapper;
 }
 public ReservationsController(
     IReservationsService reservationsService,
     UserManager <ApplicationUser> userManager,
     IRoomsService roomsService)
 {
     this.reservationsService = reservationsService;
     this.userManager         = userManager;
     this.roomsService        = roomsService;
 }
 public ReservationsController(
     IRestaurantService restaurantService,
     IConferenceHallService conferenceHallService,
     IRoomsService roomsService)
 {
     this.restaurantService     = restaurantService;
     this.conferenceHallService = conferenceHallService;
     this.roomsService          = roomsService;
 }
 public DashboardController(
     ISettingsService settingsService,
     IReservationsService reservationsService,
     IRoomsService roomsService)
 {
     this.settingsService     = settingsService;
     this.reservationsService = reservationsService;
     this.roomsService        = roomsService;
 }
Esempio n. 19
0
 public RoomsIntegrationTest(TestServerFixture fixture) : base(fixture)
 {
     game_service           = fixture.GetService <IGamesService>();
     service                = fixture.GetService <IRoomsService>();
     dbContext              = fixture.GetService <AppDbContext>();
     games_controller       = new GamesController(game_service);
     controller             = new RoomsController(service);
     _authenticationService = GetService <IAuthenticationService>();
     authController         = new AuthenticationController(_authenticationService);
 }
 public RoomController(
     IRoomsService roomsService,
     IDeletableEntityRepository <Room> repository,
     IUsersService usersService,
     IDeletableEntityRepository <Picture> picturesRepository)
 {
     this.roomsService       = roomsService;
     this.repository         = repository;
     this.usersService       = usersService;
     this.picturesRepository = picturesRepository;
 }
        public FurnitureRoomsPresenter(IFurnitureRoomsView view,
                                       IRoomsService roomsService) : base(view)
        {
            if (roomsService == null)
            {
                throw new ArgumentNullException("Rooms service cannot be null.");
            }

            this.roomsService = roomsService;
            this.View.ListingFurnitureRooms += OnListingProductsRooms;
        }
Esempio n. 22
0
 public Chat(
     ILoggerService loggerService,
     IChatConnectionsService chatConnectionsService,
     IRoomsService roomsService,
     UserManager <AspNetUsers> userManager)
 {
     _loggerService          = loggerService;
     _chatConnectionsService = chatConnectionsService;
     _roomsService           = roomsService;
     _userManager            = userManager;
 }
Esempio n. 23
0
 public RoomsController(
     IRoomsService roomsService,
     IGroupRoomsService groupRoomsService,
     IIdentityService identityService,
     INotificationsGrpcService notificationsGrpcService)
 {
     _roomsService             = roomsService ?? throw new ArgumentNullException(nameof(roomsService));
     _groupRoomsService        = groupRoomsService ?? throw new ArgumentNullException(nameof(groupRoomsService));
     _identityService          = identityService ?? throw new ArgumentNullException(nameof(identityService));
     _notificationsGrpcService = notificationsGrpcService ?? throw new ArgumentNullException(nameof(notificationsGrpcService));
 }
Esempio n. 24
0
 public UpdateService(ITemperatureSensorsService temperatureSensorsService, IHumiditySensorsService humiditySensorsService,
                      IRoomsService roomsService, ITemperatureService temperatureService, IHumidityService humidityService, IEmailService emailService,
                      ISettingsService settingsService)
 {
     _temperatureSensorsService = temperatureSensorsService;
     _humiditySensorsService    = humiditySensorsService;
     _roomsService       = roomsService;
     _temperatureService = temperatureService;
     _humidityService    = humidityService;
     _emailService       = emailService;
     _settingsService    = settingsService;
 }
Esempio n. 25
0
        public RoomsController()
        {
            _roomService = new RoomService();

            var config = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <RoomModel, RoomViewModel>();
                cfg.CreateMap <RoomPostModel, RoomModel>();
                cfg.CreateMap <RoomViewModel, GetRoomViewModel>();
            });

            _mapper = new Mapper(config);
        }
 public QuestionsController(
     IContestsService contestsService,
     IQuestionsService questionsService,
     IAnswersService answersService,
     IRoomsService roomsService,
     UserManager <ApplicationUser> userManager)
 {
     this.questionsService = questionsService;
     this.answersService   = answersService;
     this.roomsService     = roomsService;
     this.userManager      = userManager;
     this.contestsService  = contestsService;
 }
Esempio n. 27
0
 public CalendarController(
     IRoomsService roomsService,
     IRoomTypesService roomTypesService,
     IReservationRoomsService reservationRoomsService,
     IReservationsService reservationsService,
     UserManager <HotelUser> userManager)
 {
     this.roomsService            = roomsService;
     this.roomTypesService        = roomTypesService;
     this.reservationRoomsService = reservationRoomsService;
     this.reservationsService     = reservationsService;
     this.userManager             = userManager;
 }
Esempio n. 28
0
 public RoomsController(
     IRoomsService roomsServices,
     IPeriodsService periodsServices,
     IReservationsService reservationsServices,
     IHotelsService hotelsService,
     UserManager <BookingUser> userManager)
 {
     this.roomsServices        = roomsServices;
     this.periodsServices      = periodsServices;
     this.reservationsServices = reservationsServices;
     this.hotelsService        = hotelsService;
     this.userManager          = userManager;
 }
Esempio n. 29
0
 public RoomsController(
     IRoomsService roomsService,
     IContestsService contestsService,
     IApplicationSettingsService applicationSettingsService,
     UserManager <ApplicationUser> userManager,
     IHubContext <RoomHub> roomHub)
 {
     this.roomsService               = roomsService;
     this.contestsService            = contestsService;
     this.applicationSettingsService = applicationSettingsService;
     this.userManager = userManager;
     this.roomHub     = roomHub;
 }
Esempio n. 30
0
 public RoomCreationViewModel(
     IRoomsService?roomsService = null)
 {
     _roomsService     = roomsService ?? Ioc.GetService <IRoomsService>();
     ScramblesAmount   = string.Empty;
     AllEvents         = Core.Constants.Events.Predefined;
     CreateRoomCommand = ReactiveCommand.CreateFromTask(CreateRoomAsync);
     JoinRoomCommand   = ReactiveCommand.CreateFromTask(JoinRoomAsync);
     CancelCommand     = ReactiveCommand.Create(() =>
     {
         SnackbarViewModel.Disposed = true;
     });
     AccessCode        = "";
     SnackbarViewModel = new SnackbarViewModel(height: 96);
 }
Esempio n. 31
0
 public HotelsController(
     UserManager <ApplicationUser> userManager,
     IHotelsService hotelsService,
     ICitiesService citiesService,
     IStarsService starsService,
     IRoomsService roomsService,
     SignInManager <ApplicationUser> signInManager)
 {
     this.userManager   = userManager;
     this.hotelsService = hotelsService;
     this.citiesService = citiesService;
     this.starsService  = starsService;
     this.roomsService  = roomsService;
     this.signInManager = signInManager;
 }
Esempio n. 32
0
 public PendingRoomsController(IRoomsService rooms)
 {
     this.rooms = rooms;
 }
 public RoomsController(IRoomsService roomsService)
 {
     this.rooms = roomsService;
 }
Esempio n. 34
0
 public HomeController(IRoomsService rooms)
 {
     this.rooms = rooms;
 }
Esempio n. 35
0
 public ReservationsController(IRoomsService rooms, IReservationsService reservations)
 {
     this.rooms = rooms;
     this.reservations = reservations;
 }