public TimerUtility( ILocationDetailsService locationDetails, string country, string city) { offset = locationDetails.GetTimezoneOffSet( country, city); }
public Weather( string country, string city, DateTime locationTime, string weatherAreaCode, ILocationDetailsService locationDetails) { var weatherCode = locationDetails.GetLocalWeatherCode( country, city); IResourceLookup weatherResourceLookup = new ResourceLookup(); Icon = weatherResourceLookup.FindWeatherIcon( weatherCode, locationTime); NavigateToWeather = new NavigateToWeather(weatherAreaCode); }
public LocationDetailsHttpTriggerFunction(ILocationDetailsService locationDetailsService) { _locationDetailsService = Guard.Against.Null(locationDetailsService, nameof(locationDetailsService), nameof(ILocationDetailsService)); }
public LocationHttpTriggerFunction(IMapper mapper, ILocationDetailsService locationDetailsService) { _mapper = Guard.Against.Null(mapper, nameof(mapper), nameof(IMapper)); _locationDetailsService = Guard.Against.Null(locationDetailsService, nameof(locationDetailsService), nameof(ILocationDetailsService)); }