public TimerUtility(
     ILocationDetailsService locationDetails,
     string country,
     string city)
 {
     offset = locationDetails.GetTimezoneOffSet(
         country,
         city);
 }
Example #2
0
        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));
 }
Example #4
0
 public LocationHttpTriggerFunction(IMapper mapper, ILocationDetailsService locationDetailsService)
 {
     _mapper = Guard.Against.Null(mapper, nameof(mapper), nameof(IMapper));
     _locationDetailsService = Guard.Against.Null(locationDetailsService, nameof(locationDetailsService), nameof(ILocationDetailsService));
 }