public OrderController(IEmailSender emailSender,
                        UserManager <DbUser> userManager,
                        ITourRepository tourRepository,
                        ApplicationDbContext applicationDbContext,
                        IWebHostEnvironment env)
 {
     _userManager          = userManager;
     _tourRepository       = tourRepository;
     _emailSender          = emailSender;
     _applicationDbContext = applicationDbContext;
     _env = env;
 }
Example #2
0
 public TourService(IUnitOfWork unitOfWork
                    , ITourRepository tourRepo
                    , ITourAttributeValueRepository tourAttributeValueRepository
                    , ITourAttributeRepository tourAttributeRepository
                    , ICountryRegionRepository countryRegionRepository
                    , IStateProvinceRepository stateProvinceRepository) : base(unitOfWork, tourRepo)
 {
     _tourRepo = tourRepo;
     _tourAttributeRepository      = tourAttributeRepository;
     _tourAttributeValueRepository = tourAttributeValueRepository;
     _countryRegionRepository      = countryRegionRepository;
     _stateProvinceRepository      = stateProvinceRepository;
 }
Example #3
0
 public RepositoryInject(TourListContext context,
                         ITourRepository tours,
                         IClientRepository clients,
                         IExcursionRepository excursions,
                         IExcursionSightRepository excursionSights,
                         ISnapshotSightRepository snapshotSights,
                         IUserRepository users)
 {
     _context        = context;
     Tours           = tours;
     Clients         = clients;
     Excursions      = excursions;
     ExcursionSights = excursionSights;
     SnapshotSights  = snapshotSights;
     Users           = users;
 }
Example #4
0
 public UnitOfWork(ICityRepository cityRepository, IClientRepository clientRepository, IClimateRepository climateRepository,
                   ICountryRepository countryRepository, IDiscountRepository discountRepository, IDurationRepository durationRepository,
                   IHotelRepository hotelRepository, IPassDiscountRepository passDiscountRepository, IPassRepository passRepository,
                   ITourRepository tourRepository, TravelCompanyDBContext context)
 {
     _cityRepository         = cityRepository;
     _clientRepository       = clientRepository;
     _climateRepository      = climateRepository;
     _countryRepository      = countryRepository;
     _discountRepository     = discountRepository;
     _durationRepository     = durationRepository;
     _hotelRepository        = hotelRepository;
     _passDiscountRepository = passDiscountRepository;
     _passRepository         = passRepository;
     _tourRepository         = tourRepository;
     _context = context;
 }
Example #5
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ITourRepository tourRepository, IOtherTourRepository otherTourRepository)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseRouting();

            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllers();
            });

            tourRepository.Populate();
            otherTourRepository.Populate();
        }
Example #6
0
 public NavigationService(
     IClientRepository clientRepository,
     ILocationRepository locationRepository,
     IAreaRepository areaRepository,
     ITourRepository tourRepository)
 {
     _clientRepository   = clientRepository;
     _locationRepository = locationRepository;
     _areaRepository     = areaRepository;
     _tourRepository     = tourRepository;
     _breadCrumbFactory  = new Dictionary <Type, Func <INavigableEntity, NavigationBreadCrumbVO> > {
         { typeof(Client), (x) => GetClientBreadCrumb(x, new NavigationBreadCrumbVO()) },
         { typeof(Location), (x) => GetLocationBreadCrumb(x, new NavigationBreadCrumbVO()) },
         { typeof(Area), (x) => GetAreaBreadCrumb(x, new NavigationBreadCrumbVO()) },
         { typeof(Tour), (x) => GetTourBreadCrumb(x, new NavigationBreadCrumbVO()) },
     };
 }
Example #7
0
        public StartDataService(IFoodTypeRepository foodTypeRepository, ICityRepository cityRepository,
                                ICountryRepository countryRepository, IHotelRepository hotelRepository,
                                IPlacementTypeRepository placementTypeRepository, ITransportTypeRepository transportTypeRepository,
                                ITourTypeRepository tourTypeRepository, ICityFromRepository cityFromRepository,
                                ITourRepository tourRepository)

        {
            _tourRepository          = tourRepository;
            _foodTypeRepository      = foodTypeRepository;
            _cityRepository          = cityRepository;
            _cityFromRepository      = cityFromRepository;
            _countryRepository       = countryRepository;
            _hotelRepository         = hotelRepository;
            _placementTypeRepository = placementTypeRepository;
            _transportTypeRepository = transportTypeRepository;
            _tourTypeRepository      = tourTypeRepository;
        }
Example #8
0
        public List(
            ITourRepository tourRepo,
            INhanVienRepository nhanvienRepo,
            IChiTieuRepository chitieuRepo,
            IDoanKhachRepository doankhachRepo,
            IHanhKhachRepository hanhkhachRepo,
            IServiceProvider serviceProvider
            )
        {
            InitializeComponent();
            _tourRepo      = tourRepo;
            _nhanvienRepo  = nhanvienRepo;
            _chitieuRepo   = chitieuRepo;
            _doankhachRepo = doankhachRepo;
            _hanhkhachRepo = hanhkhachRepo;

            _serviceProvider       = serviceProvider;
            tabControl.SelectedTab = tabTour;
        }
 public LookupService(
     IClientRepository clientRepository,
     ILocationRepository locationRepository,
     IAreaRepository areaRepository,
     ITourRepository tourRepository,
     IAssetStoreRepository assetStoreRepository,
     IRegistrationCodeRepository registrationCodeRepository,
     ISecurityUserRepository securityUserRepository,
     IItemStatusRepository itemStatusRepository,
     ICustomizationRepository customizationRepository
     )
 {
     _clientRepository           = clientRepository;
     _locationRepository         = locationRepository;
     _areaRepository             = areaRepository;
     _tourRepository             = tourRepository;
     _assetStoreRepository       = assetStoreRepository;
     _registrationCodeRepository = registrationCodeRepository;
     _securityUserRepository     = securityUserRepository;
     _itemStatusRepository       = itemStatusRepository;
     _customizationRepository    = customizationRepository;
 }
Example #10
0
 public AdminService(
     IClientRepository clientRepository,
     IRegistrationCodeRepository registrationCodeRepository,
     ILocationRepository locationRepository,
     IAreaRepository areaRepository,
     ITourRepository tourRepository,
     IAssetStoreRepository assetStoreRepository,
     IFileService fileService,
     ISecurityUserClientRepository securityUserClientRepository,
     ICustomizationRepository customizationRepository
     )
 {
     _clientRepository           = clientRepository;
     _registrationCodeRepository = registrationCodeRepository;
     _locationRepository         = locationRepository;
     _areaRepository             = areaRepository;
     _tourRepository             = tourRepository;
     _assetStoreRepository       = assetStoreRepository;
     _fileService = fileService;
     _securityUserClientRepository = securityUserClientRepository;
     _customizationRepository      = customizationRepository;
 }
Example #11
0
        // When a new homecontroller is created, pass in the needed variables
        public HomeController(ILogger <HomeController> logger, ITourRepository repository, ToursDbContext context)
        {
            _logger     = logger;
            _repository = repository;
            _context    = context;



            // Used to generate times
            DateTime currentDate = DateTime.Now;


            int objectsCreated = 0;

            // This will loop through 7 days and make appropiate timeslots over the 12 hours starting at 8am and the the last timeslot at 7pm
            for (int days = 0; days < 7; days++)
            {
                int    startTime = 8;
                string timetype  = "AM";
                for (int hours = 0; hours < 12; hours++)
                {
                    Time newTime = new Time();
                    newTime.Date          = currentDate.AddDays(days).ToString("dd/MM/yyyy");
                    newTime.ScheduledTime = (startTime + hours).ToString() + ":00 " + timetype;
                    // Use to swap from AM to PM
                    if ((startTime + hours) == 12)
                    {
                        timetype = "PM";
                        newTime.ScheduledTime = (startTime + hours).ToString() + ":00 " + timetype;
                        startTime             = 0 - hours;
                    }
                    newTime.TimeID = objectsCreated;
                    objectsCreated++;
                    times.Add(newTime);
                }
            }
        }
 public ShowsController(ITourRepository tourRepository)
 {
     _tourRepository = tourRepository;
 }
Example #13
0
 public ThongTinTour(ITourRepository tourRepository, IServiceProvider serviceProvider)
 {
     _tourRepository  = tourRepository;
     _serviceProvider = serviceProvider;
     InitializeComponent();
 }
Example #14
0
 public DictionaryAggregator(ITourRepository tourRepository, IOtherTourRepository otherTourRepository, IMemoryCache memoryCache)
 {
     _tourRepository      = tourRepository;
     _otherTourRepository = otherTourRepository;
     _memoryCache         = memoryCache;
 }
 public DeleteTourOperationShould()
 {
     _tourRepository = Substitute.For<ITourRepository>();
     _operationContext = Substitute.For<IOperationContext>();
 }
 public ToursController(ITourRepository repository)
 {
     _repository = repository;
 }
Example #17
0
 public TourService(ITourRepository repo)
 {
     Checks.Argument.IsNotNull(repo, "repo");
     _repo = repo;
 }
 public TourService(ITourRepository tourRepository)
 {
     _tourRepository = tourRepository;
 }
Example #19
0
 public TourService(IUnitOfWork unitOfWork)
 {
     _unit       = unitOfWork;
     _repository = _unit.TourRepository;
 }
Example #20
0
 public TripApiController(ITourRepository repo)
 {
     db = repo;
 }
Example #21
0
 public ThemGia(ITourRepository tourRepository)
 {
     _tourRepository = tourRepository;
     InitializeComponent();
 }
Example #22
0
 public ArrivalTimeService(ITourRepository tourRepository, IMappingService mappingService, ITravelService travelService)
 {
     _tourRepository = tourRepository;
     _mappingService = mappingService;
     _travelService  = travelService;
 }
Example #23
0
 public CartController(ITourRepository repo)
 {
     repository = repo;
 }
Example #24
0
 public CartController(ITourRepository repo, IOrderProcessor proc)
 {
     repository = repo;
     orderProcessor = proc;
 }
Example #25
0
 public TourController(IMapper mapper, ITourRepository repository)
 {
     _mapper     = mapper;
     _repository = repository;
 }
Example #26
0
 public EmployeesManagementController(IEmployeeRepository employeeRepository,
                                      ITourRepository tourRepository)
 {
     _employeeRepository = employeeRepository;
     _tourRepository     = tourRepository;
 }
Example #27
0
 public TourController(ITourRepository tourRepository)
 {
     this.repository = tourRepository;
 }
Example #28
0
 public TourService(ITourRepository tourRepository, IMapper mapper)
 {
     _tourRepository = tourRepository;
     _mapper         = mapper;
 }
 public HomeController(ITourRepository tourRepository)
 {
     _tourRepository = tourRepository;
 }
Example #30
0
 public TourService(ITourRepository repo)
 {
     Checks.Argument.IsNotNull(repo, "repo");
     _repo = repo;
 }
Example #31
0
 public TourController(ITourRepository tourRepository, ILocationRepository localRepository)
 {
     this.tourRepository = tourRepository;
     this.localRepository = localRepository;
 }
 public ManagersController(ITourRepository tourManagementRepository)
 {
     _tourRepository = tourManagementRepository;
 }
Example #33
0
 public CartController(ITourRepository repo)
 {
     repository = repo;
 }
 public UpdateTourOperationShould()
 {
     _tourRepository = Substitute.For<ITourRepository>();
     _operationContext = Substitute.For<IOperationContext>();
     _operationContext.IdOrganization.Returns(_idOrganization);
 }
Example #35
0
 public ApiIndexController(ITourRepository repo)
 {
     db = repo;
 }
Example #36
0
 public NavController(ITourRepository repo)
 {
     repository = repo;
 }
Example #37
0
 public TourBusiness(ITourRepository tour, IUnitOfWork unitOfWork)
 {
     _tour       = tour;
     _unitOfWork = unitOfWork;
 }
Example #38
0
 public NavigationMenuViewComponent(ITourRepository r)
 {
     repository = r;
 }
Example #39
0
 public AdminController(ITourRepository repo)
 {
     repository = repo;
 }