public OrderController(IEmailSender emailSender, UserManager <DbUser> userManager, ITourRepository tourRepository, ApplicationDbContext applicationDbContext, IWebHostEnvironment env) { _userManager = userManager; _tourRepository = tourRepository; _emailSender = emailSender; _applicationDbContext = applicationDbContext; _env = env; }
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; }
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; }
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; }
// 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(); }
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()) }, }; }
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; }
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; }
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; }
// 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; }
public ThongTinTour(ITourRepository tourRepository, IServiceProvider serviceProvider) { _tourRepository = tourRepository; _serviceProvider = serviceProvider; InitializeComponent(); }
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; }
public TourService(ITourRepository repo) { Checks.Argument.IsNotNull(repo, "repo"); _repo = repo; }
public TourService(ITourRepository tourRepository) { _tourRepository = tourRepository; }
public TourService(IUnitOfWork unitOfWork) { _unit = unitOfWork; _repository = _unit.TourRepository; }
public TripApiController(ITourRepository repo) { db = repo; }
public ThemGia(ITourRepository tourRepository) { _tourRepository = tourRepository; InitializeComponent(); }
public ArrivalTimeService(ITourRepository tourRepository, IMappingService mappingService, ITravelService travelService) { _tourRepository = tourRepository; _mappingService = mappingService; _travelService = travelService; }
public CartController(ITourRepository repo) { repository = repo; }
public CartController(ITourRepository repo, IOrderProcessor proc) { repository = repo; orderProcessor = proc; }
public TourController(IMapper mapper, ITourRepository repository) { _mapper = mapper; _repository = repository; }
public EmployeesManagementController(IEmployeeRepository employeeRepository, ITourRepository tourRepository) { _employeeRepository = employeeRepository; _tourRepository = tourRepository; }
public TourController(ITourRepository tourRepository) { this.repository = tourRepository; }
public TourService(ITourRepository tourRepository, IMapper mapper) { _tourRepository = tourRepository; _mapper = mapper; }
public HomeController(ITourRepository tourRepository) { _tourRepository = tourRepository; }
public TourController(ITourRepository tourRepository, ILocationRepository localRepository) { this.tourRepository = tourRepository; this.localRepository = localRepository; }
public ManagersController(ITourRepository tourManagementRepository) { _tourRepository = tourManagementRepository; }
public UpdateTourOperationShould() { _tourRepository = Substitute.For<ITourRepository>(); _operationContext = Substitute.For<IOperationContext>(); _operationContext.IdOrganization.Returns(_idOrganization); }
public ApiIndexController(ITourRepository repo) { db = repo; }
public NavController(ITourRepository repo) { repository = repo; }
public TourBusiness(ITourRepository tour, IUnitOfWork unitOfWork) { _tour = tour; _unitOfWork = unitOfWork; }
public NavigationMenuViewComponent(ITourRepository r) { repository = r; }
public AdminController(ITourRepository repo) { repository = repo; }