public void Update_DoesNotThrowException()
        {
            // Create a test provider and store
            ITemperatureProvider provider = new FakeTemperatureProvider();
            ITemperatureStore    store    = new MemoryTemperatureStore();

            // Inject the test dependencies
            TemperatureManager testTemperatureManager = new TemperatureManager(provider, store);

            Assert.DoesNotThrow(() => testTemperatureManager.Update());
        }
Exemple #2
0
 private bool TemperatureTimerCallback()
 {
     _temperatureManager.Update();
     _temperatureManager.Accept(_cache.AsWriteOnly());
     return(true);
 }
Exemple #3
0
        static void Main(string[] args)
        {
            TemperatureManager temperatureManager = new TemperatureManager();

            temperatureManager.Update();
        }