Esempio n. 1
0
        public SendRequestStatusToGetASmokeAlarmShould()
        {
            var settings = new GetASmokeAlarmApiSettings()
            {
                BaseAddress = "https://demo.getasmokealarm.org/",
                Token       = "someToken"
            };

            _getASmokeAlarmApiSettings = Options.Create(settings);
        }
Esempio n. 2
0
 public SendRequestStatusToGetASmokeAlarm(IOptions <GetASmokeAlarmApiSettings> getASmokeAlarmApiSettings, IHttpClient httpClient)
 {
     _getASmokeAlarmApiSettings = getASmokeAlarmApiSettings.Value;
     _httpClient = httpClient;
 }