示例#1
0
 public UserController(ILogger <UserController> logger, IPanelUserService panelUserService, IPlaceService placeService, ICompanyService companyService)
 {
     _logger           = logger;
     _panelUserService = panelUserService;
     _placeService     = placeService;
     _companyService   = companyService;
 }
 public PromotionController(ILogger <PromotionController> logger, IPromotionService promotionService, IPlaceService placeService, IFeedbackService feedbackService)
 {
     _promotionService = promotionService;
     _placeService     = placeService;
     _feedbackService  = feedbackService;
     _logger           = logger;
 }
示例#3
0
        private Image image;//kind:2 potrait


        //Constructor
        public CrawController(IPlaceService _PlaceService, IImageService _ImageService, IPlaceKindService _PlaceKindService, IImageKindService _ImageKindService)
        {
            this._PlaceService     = _PlaceService;
            this._PlaceKindService = _PlaceKindService;
            this._ImageService     = _ImageService;
            this._ImageKindService = _ImageKindService;
        }
 public ManagementController(ICarService servCar, IPlaceService servPlace, IManufacturerService servMan, IRentService servRent)
 {
     carService         = servCar;
     rentService        = servRent;
     placeService       = servPlace;
     manufacurerService = servMan;
 }
        public IActionResult GetPlaces([FromBody] PlacesPostModel placesPostModel)
        {
            //Check if place names was sent from the client
            if (placesPostModel == null || placesPostModel.PlaceNames == null || placesPostModel.PlaceNames.Count() < 1)
            {
                return(new BadRequestObjectResult(ModelState));
            }

            //Get the places information
            var places = IPlaceService.GetPlaces(placesPostModel.PlaceNames.ToList(), 5, OrderByQuery.Cheapest);

            if (places == null || places.Count < 1)
            {
                return(new NoContentResult());
            }

            //Convert Place models to view models
            var placeViewModels = IModelTransformer.PlacesToViewModels(places);

            //Check if converstion returned a view model
            if (placeViewModels == null)
            {
                return(new NoContentResult());
            }

            //Return list of place view models to client
            return(new OkObjectResult(placeViewModels));
        }
 public RateController()
 {
     this._rateService = new RateService();
     this._rateTypeService = new RateTypeService();
     this._accountService = new AccountService();
     this._placeService = new PlaceService();
 }
        public EventController()
        {
            _eventManagementService = new EventManagementService();
            _userService = new UserService();
            _placeService = new PlaceService();
            List<Object> list = new List<Object>
            {
               new {Value = "00:00:00", Text = "00:00"},
               new {Value = "01:00:00", Text = "01:00"},
               new {Value = "02:00:00", Text = "02:00"},
               new {Value = "03:00:00", Text = "03:00"},
               new {Value = "04:00:00", Text = "04:00"},
               new {Value = "05:00:00", Text = "05:00"},
               new {Value = "06:00:00", Text = "06:00"},
               new {Value = "07:00:00", Text = "07:00"},
               new {Value = "08:00:00", Text = "08:00"},
               new {Value = "09:00:00", Text = "09:00"},
               new {Value = "10:00:00", Text = "10:00"},
               new {Value = "11:00:00", Text = "11:00"},
               new {Value = "12:00:00", Text = "12:00"},
               new {Value = "13:00:00", Text = "13:00"},
               new {Value = "14:00:00", Text = "14:00"},
               new {Value = "15:00:00", Text = "15:00"},
               new {Value = "16:00:00", Text = "16:00"},
               new {Value = "17:00:00", Text = "17:00"},
               new {Value = "18:00:00", Text = "18:00"},
               new {Value = "19:00:00", Text = "19:00"},
               new {Value = "20:00:00", Text = "20:00"},
               new {Value = "21:00:00", Text = "21:00"},
               new {Value = "22:00:00", Text = "22:00"},
               new {Value = "23:00:00", Text = "23:00"}
            };

            ViewBag.Times = list;
        }
示例#8
0
 public SelectLocationPageViewModel()
 {
     Service = DependencyService.Resolve <IPlaceService>();
     PlaceSearchAutoComplete = new ObservableCollection <Prediction>();
     Xamarin.Forms.BindingBase.EnableCollectionSynchronization(PlaceSearchAutoComplete, null, ObservableCollectionCallback);
     InitCommands();
 }
示例#9
0
        public EventController()
        {
            _eventManagementService = new EventManagementService();
            _userService            = new UserService();
            _placeService           = new PlaceService();
            List <Object> list = new List <Object>
            {
                new { Value = "00:00:00", Text = "00:00" },
                new { Value = "01:00:00", Text = "01:00" },
                new { Value = "02:00:00", Text = "02:00" },
                new { Value = "03:00:00", Text = "03:00" },
                new { Value = "04:00:00", Text = "04:00" },
                new { Value = "05:00:00", Text = "05:00" },
                new { Value = "06:00:00", Text = "06:00" },
                new { Value = "07:00:00", Text = "07:00" },
                new { Value = "08:00:00", Text = "08:00" },
                new { Value = "09:00:00", Text = "09:00" },
                new { Value = "10:00:00", Text = "10:00" },
                new { Value = "11:00:00", Text = "11:00" },
                new { Value = "12:00:00", Text = "12:00" },
                new { Value = "13:00:00", Text = "13:00" },
                new { Value = "14:00:00", Text = "14:00" },
                new { Value = "15:00:00", Text = "15:00" },
                new { Value = "16:00:00", Text = "16:00" },
                new { Value = "17:00:00", Text = "17:00" },
                new { Value = "18:00:00", Text = "18:00" },
                new { Value = "19:00:00", Text = "19:00" },
                new { Value = "20:00:00", Text = "20:00" },
                new { Value = "21:00:00", Text = "21:00" },
                new { Value = "22:00:00", Text = "22:00" },
                new { Value = "23:00:00", Text = "23:00" }
            };

            ViewBag.Times = list;
        }
示例#10
0
 public PlaceController(ILogger <PlaceController> logger, IHostingEnvironment hostingEnvironment, IPlaceService placeService, IEmailSender emailSender)
 {
     _logger             = logger;
     _placeService       = placeService;
     _hostingEnvironment = hostingEnvironment;
     _emailSender        = emailSender;
 }
示例#11
0
 public PlaceController(IPlaceService placeService, UserManager <User> userManager,
                        IFileService fileService)
 {
     this.placeService = placeService;
     this.userManager  = userManager;
     this.fileService  = fileService;
 }
示例#12
0
 public VoteController()
 {
     _votingService          = new VotingService();
     _eventManagementService = new EventManagementService();
     _eventDetailsService    = new EventDetailsService();
     _placeService           = new PlaceService();
 }
示例#13
0
 public FeedbackController(ILogger <ManageController> logger, IFeedbackService feedbackService, IPlaceService placeService, IPanelUserService panelUserService)
 {
     _logger           = logger;
     _feedbackService  = feedbackService;
     _placeService     = placeService;
     _panelUserService = panelUserService;
 }
示例#14
0
 public DashboardViewModel(ICustomerService customerService, IOrderService orderService, IProductService productService, IPlaceService placeService, ICommonServices commonServices) : base(commonServices)
 {
     CustomerService = customerService;
     OrderService    = orderService;
     ProductService  = productService;
     PlaceService    = placeService;
 }
示例#15
0
        public ProfileController(
            IMappingService mappingService,
            IPlaceService placesService,
            ICountryService countryService,
            IArticleService articleService,
            IPictureService pictureService,
            IUserService userService,
            ICacheProvider cacheProvider,
            IUserProvider userProvider,
            IFileProvider fileProvider)
        {
            Guard.WhenArgument(mappingService, "mappingService").IsNull().Throw();
            Guard.WhenArgument(placesService, "placesService").IsNull().Throw();
            Guard.WhenArgument(countryService, "countryService").IsNull().Throw();
            Guard.WhenArgument(articleService, "articleService").IsNull().Throw();
            Guard.WhenArgument(pictureService, "pictureService").IsNull().Throw();
            Guard.WhenArgument(userService, "userService").IsNull().Throw();
            Guard.WhenArgument(cacheProvider, "cacheProvider").IsNull().Throw();
            Guard.WhenArgument(userProvider, "userProvider").IsNull().Throw();
            Guard.WhenArgument(fileProvider, "fileProvider").IsNull().Throw();

            this.mappingService = mappingService;
            this.placesService  = placesService;
            this.countryService = countryService;
            this.articleService = articleService;
            this.pictureService = pictureService;
            this.userService    = userService;
            this.cacheProvider  = cacheProvider;
            this.userProvider   = userProvider;
            this.fileProvider   = fileProvider;
        }
示例#16
0
 public PlaceController(IAdministratorRepository administratorRepository, IPlaceRepository placeRepository, IPlaceService placeService, IClaimsService claimsService)
 {
     _administratorRepository = administratorRepository;
     _placeRepository         = placeRepository;
     _placeService            = placeService;
     _claimsService           = claimsService;
 }
 public VoteController()
 {
     _votingService = new VotingService();
     _eventManagementService = new EventManagementService();
     _eventDetailsService = new EventDetailsService();
     _placeService = new PlaceService();
 }
示例#18
0
 public PlaceController(IPlaceService placeService, IImageService imageService,
                        UserManager <User> userManager, IReviewService reviewService)
 {
     this.placeService  = placeService;
     this.imageService  = imageService;
     this.userManager   = userManager;
     this.reviewService = reviewService;
 }
示例#19
0
        public PlacesViewModel(IPlaceService placeService, IOrderService orderService, IFilePickerService filePickerService, ICommonServices commonServices) : base(commonServices)
        {
            PlaceService = placeService;

            PlaceList    = new PlaceListViewModel(PlaceService, commonServices);
            PlaceDetails = new PlaceDetailsViewModel(PlaceService, filePickerService, commonServices);
            PlaceOrders  = new OrderListViewModel(orderService, commonServices);
        }
示例#20
0
 public PetController(UserManager <User> userManager, IPetService petService,
                      IImageService imageService, IPlaceService placeService)
 {
     this.userManager  = userManager;
     this.petService   = petService;
     this.imageService = imageService;
     this.placeService = placeService;
 }
示例#21
0
 public PlacesController(
     IMessageExceptionFinder messageExceptionFinder,
     IPlaceService placeService,
     IMapper mapper) : base(messageExceptionFinder)
 {
     this.placeService = placeService;
     this.mapper       = mapper;
 }
 public CommonUtils(BanobatDbContext dbContext, IShiftCenterService polyclinicService, IExpertiseService expertiseService, IPlaceService placeService, IWorkContext workContext)
 {
     _dbContext         = dbContext;
     _polyclinicService = polyclinicService;
     _expertiseService  = expertiseService;
     _placeService      = placeService;
     _workContext       = workContext;
 }
示例#23
0
        public PlacesController(IMappingService mappingService, IPlaceService placeService)
        {
            Guard.WhenArgument(mappingService, "mappingService").IsNull().Throw();
            Guard.WhenArgument(placeService, "placeService").IsNull().Throw();

            this.mappingService = mappingService;
            this.placeService   = placeService;
        }
示例#24
0
        public CustomersViewModel(ICustomerService customerService, IPlaceService placeService, IFilePickerService filePickerService, ICommonServices commonServices) : base(commonServices)
        {
            CustomerService = customerService;

            CustomerList    = new CustomerListViewModel(CustomerService, commonServices);
            CustomerDetails = new CustomerDetailsViewModel(CustomerService, filePickerService, commonServices);
            CustomerPlaces  = new PlaceListViewModel(placeService, commonServices);
        }
示例#25
0
        public PlaceInputWindow(IRailwayServiceProxyCreationFacade facade, User principal, ILogging logger, Place place)
        {
            IPlaceService       placeService   = facade.GetPlaceServiceProxy(principal.UserName, principal.Password);
            ICountryService     countryService = facade.GetCountryServiceProxy(principal.UserName, principal.Password);
            PlaceInputViewModel viewModel      = new PlaceInputViewModel(place, placeService, countryService, logger, this);

            DataContext = viewModel;
            InitializeComponent();
        }
示例#26
0
        public SearchService(IPlaceService placeService)
        {
            if (placeService == null)
            {
                throw new ArgumentNullException(nameof(placeService));
            }

            this.placeService = placeService;
        }
 public TripProcessor(CarTrackerDbContext db, IPlaceService placeService,
                      ITripService tripService, ITripPossiblePlaceService tripPossiblePlaceService,
                      IServerLogger logger)
 {
     this._db                       = db;
     this._placeService             = placeService;
     this._tripService              = tripService;
     this._tripPossiblePlaceService = tripPossiblePlaceService;
     this._logger                   = logger;
 }
 public PlaceController(
     IPlaceGroupService PlaceGroupService,
     IPlaceService PlaceService,
     ICurrentContext CurrentContext
     )
 {
     this.PlaceGroupService = PlaceGroupService;
     this.PlaceService      = PlaceService;
     this.CurrentContext    = CurrentContext;
 }
示例#29
0
 public HomeController(ILogger <HomeController> logger, IHostingEnvironment hostingEnvironment, IPlaceService placeService, IFeedbackService feedbackService, ICompanyService companyService, ICompanyFeedbackService companyFeedbackService, IEmailSender emailSender)
 {
     _logger                 = logger;
     _hostingEnvironment     = hostingEnvironment;
     _placeService           = placeService;
     _feedbackService        = feedbackService;
     _companyService         = companyService;
     _companyFeedbackService = companyFeedbackService;
     _emailSender            = emailSender;
 }
示例#30
0
        public StationInputWindow(User principal, IRailwayServiceProxyCreationFacade facade, Station predicate, ILogging logger)
        {
            IPlaceService         placeService   = facade.GetPlaceServiceProxy(principal.UserName, principal.Password);
            ITrackService         trackService   = facade.GetTrackServiceProxy(principal.UserName, principal.Password);
            IStationService       stationService = facade.GetStationServiceProxy(principal.UserName, principal.Password);
            StationInputViewModel viewModel      = new StationInputViewModel(predicate, stationService, trackService, placeService, logger, this);

            DataContext = viewModel;
            InitializeComponent();
        }
示例#31
0
            public void Invalid_List_Of_Place_Names_Of_Type_Null_Returns_Null()
            {
                // Given
                int          numberOfHotels = 5;
                OrderByQuery orderByQuery   = OrderByQuery.Cheapest;
                // When
                var result = IPlaceService.GetPlaces(null, numberOfHotels, orderByQuery);

                // Then
                Assert.Null(result);
            }
示例#32
0
 public AdvertController(IAdvertService advertService, IWebHostEnvironment hostEnvironment, IProvinceService provinceService, IAdvertTypeService advertTypeService, IHeatingService heatingService, INeighborhoodService neighborhoodService, IDistrictService districtService, IPlaceService placeService)
 {
     _advertService       = advertService;
     _hostEnvironment     = hostEnvironment;
     _provinceService     = provinceService;
     _advertTypeService   = advertTypeService;
     _heatingService      = heatingService;
     _neighborhoodService = neighborhoodService;
     _districtService     = districtService;
     _placeService        = placeService;
 }
示例#33
0
 public PlaceController(IMapper mapper,
                        IPlaceService placeService,
                        ICategoryService categoryService,
                        IFeedbackService feedbackService,
                        ICurrentUserService currentUserService)
 {
     this.mapper             = mapper;
     this.placeService       = placeService;
     this.categoryService    = categoryService;
     this.feedbackService    = feedbackService;
     this.currentUserService = currentUserService;
 }
 public PlaceController()
 {
     _placeService = new PlaceService();
     _FSClient = new SharpSquare(ConfigurationManager.AppSettings["FourSquareClientId"], ConfigurationManager.AppSettings["FourSquareClientSecret"]);
 }
示例#35
0
 public void TestInitialize()
 {
     _placeService = new PlaceService(new Factory());
 }
示例#36
0
 public PlacesController(IPlaceService service)
 {
     this.service = service;
 }
 public PlaceController(IPlaceService placeService, ITagService tagsService)
 {
     this.placeService = placeService;
     this.tagsService = tagsService;
 }
示例#38
0
 public HomeController(IPlaceService placeService, IUserService userService)
 {
     this.placeService = placeService;
     this.userService = userService;
 }
示例#39
0
 public PlacesController(IPlaceService placeService)
 {
     this.placeService = placeService;
 }