Esempio n. 1
0
 public ThermalNotifierServiceTest()
 {
     _logger = A.Fake<ILogger>();
     _thermometerService = A.Fake<IThermometerService>();
     _slackNotifierService = A.Fake<ISlackNotifierService>();
     _configuration = A.Fake<IConfiguration>();
     _thermalNotifierService = new ThermalNotifierService(_thermometerService, _slackNotifierService, _configuration, _logger);
     ThermalNotifierServiceTemperatureHistory.LastKnownTemperature = null;
 }
Esempio n. 2
0
        public ThermalNotifierServiceTest()
        {
            _mockHttpMessageHandler = new MockHttpMessageHandler();
            var httpClient = new HttpClient(_mockHttpMessageHandler);

            _logger = A.Fake <ILogger>();
            _thermalNotifierService = new ThermalNotifierService(httpClient, _logger);
            ThermalNotifierServiceTemperatureHistory.LastKnownTemperature = null;
        }