public WeatherService(string appId, CultureInfo localization)
 {
     if (string.IsNullOrEmpty(appId))
         throw new ArgumentException(nameof(appId));
     AppId = appId;
     Localization = localization;
     weatherServiceProvider = new WeatherServiceProvider(Localization);
 }
 public WeatherService(string appId)
 {
     if (string.IsNullOrEmpty(appId))
         throw new ArgumentException(nameof(appId));
     AppId = appId;
     Localization = new CultureInfo(ApplicationLanguages.PrimaryLanguageOverride);
     weatherServiceProvider = new WeatherServiceProvider(Localization);
 }
示例#3
0
 public WeatherService(string appId, CultureInfo localization)
 {
     if (string.IsNullOrEmpty(appId))
     {
         throw new ArgumentException(nameof(appId));
     }
     AppId                  = appId;
     Localization           = localization;
     weatherServiceProvider = new WeatherServiceProvider(Localization);
 }
示例#4
0
 public WeatherService(string appId)
 {
     if (string.IsNullOrEmpty(appId))
     {
         throw new ArgumentException(nameof(appId));
     }
     AppId                  = appId;
     Localization           = new CultureInfo(ApplicationLanguages.PrimaryLanguageOverride);
     weatherServiceProvider = new WeatherServiceProvider(Localization);
 }
示例#5
0
 public WeatherService(IHttpClient mock, CultureInfo localization)
 {
     AppId                  = "InvalidAppId";
     Localization           = localization;
     weatherServiceProvider = new WeatherServiceProvider(mock, Localization);
 }
示例#6
0
 public WeatherService(IHttpClient mock)
 {
     AppId                  = "InvalidAppId";
     Localization           = new CultureInfo(ApplicationLanguages.PrimaryLanguageOverride);
     weatherServiceProvider = new WeatherServiceProvider(mock, Localization);
 }
 public WeatherService(IHttpClient mock, CultureInfo localization)
 {
     AppId = "InvalidAppId";
     Localization = localization;
     weatherServiceProvider = new WeatherServiceProvider(mock, Localization);
 }
 public WeatherService(IHttpClient mock)
 {
     AppId = "InvalidAppId";
     Localization = new CultureInfo(ApplicationLanguages.PrimaryLanguageOverride);
     weatherServiceProvider = new WeatherServiceProvider(mock, Localization);
 }