Esempio n. 1
0
 public static IEnumerable <Overture.ServiceModel.Customers.Stores.Store> FilterSortStoresByDistanceToCustomer(
     this IEnumerable <Overture.ServiceModel.Customers.Stores.Store> stores, IGoogleSettings settings, Coordinate searchPoint)
 {
     return(from store in stores
            let distanceToCustomer = store.CalculateDestination(searchPoint, settings.LengthMeasureUnit)
                                     where settings.StoresAvailabilityDistance == null
              ? true
              : distanceToCustomer <= (double)settings.StoresAvailabilityDistance
                                     orderby distanceToCustomer
                                     select store);
 }
Esempio n. 2
0
 public StoreLocatorViewService(
     IStoreRepository storeRepository,
     IStoreViewModelFactory storeViewModelFactory,
     IStoreUrlProvider storeUrlProvider,
     IMapClustererProvider mapClustererProvider,
     IGoogleSettings googleSettings)
 {
     StoreRepository       = storeRepository;
     StoreViewModelFactory = storeViewModelFactory;
     StoreUrlProvider      = storeUrlProvider;
     MapClustererProvider  = mapClustererProvider;
     GoogleSettings        = googleSettings ?? throw new ArgumentNullException(nameof(googleSettings));
 }
Esempio n. 3
0
 public StoreViewService(
     IStoreRepository storeRepository,
     IStoreViewModelFactory storeViewModelFactory,
     ILocalizationProvider localizationProvider,
     IStoreUrlProvider storeUrlProvider,
     IGoogleSettings googleSettings)
 {
     StoreViewModelFactory = storeViewModelFactory;
     StoreRepository       = storeRepository;
     LocalizationProvider  = localizationProvider;
     StoreUrlProvider      = storeUrlProvider;
     GoogleSettings        = googleSettings ?? throw new ArgumentNullException(nameof(googleSettings));
 }
        public StoreInventoryViewService(
            IStoreViewModelFactory storeViewModelFactory,
            IStoreRepository storeRepository,
            ILookupService lookupService,
            IProductSettingsViewService productSettingsViewService,
            IInventoryRepository inventoryRepository,
            IGoogleSettings googleSettings)
        {
            StoreViewModelFactory      = storeViewModelFactory;
            StoreRepository            = storeRepository;
            LookupService              = lookupService;
            ProductSettingsViewService = productSettingsViewService;
            InventoryRepository        = inventoryRepository;

            GoogleSettings = googleSettings;
        }
Esempio n. 5
0
 public RepresentativesInfoService(IGoogleSettings googleSettings)
 {
     _googleSettings = googleSettings;
 }
Esempio n. 6
0
 public GoogleTagComponent(IGoogleSettings googleSettings)
 {
     _googleSettings = googleSettings;
 }
Esempio n. 7
0
 public QueryRequestBuilder(IGoogleSettings settings)
 {
     _googleSettings = settings;
 }
Esempio n. 8
0
 public GoogleMapsUrlProvider(IGoogleSettings googleMapsSettings)
 {
     GoogleMapsSettings = googleMapsSettings;
 }
Esempio n. 9
0
 public MapConfigurationViewService(IStoreRepository storeRepository, IGoogleSettings googleMapsSettings)
 {
     StoreRepository    = storeRepository;
     GoogleMapsSettings = googleMapsSettings;
 }