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); }
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)); }
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; }
public RepresentativesInfoService(IGoogleSettings googleSettings) { _googleSettings = googleSettings; }
public GoogleTagComponent(IGoogleSettings googleSettings) { _googleSettings = googleSettings; }
public QueryRequestBuilder(IGoogleSettings settings) { _googleSettings = settings; }
public GoogleMapsUrlProvider(IGoogleSettings googleMapsSettings) { GoogleMapsSettings = googleMapsSettings; }
public MapConfigurationViewService(IStoreRepository storeRepository, IGoogleSettings googleMapsSettings) { StoreRepository = storeRepository; GoogleMapsSettings = googleMapsSettings; }