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()); }
private bool TemperatureTimerCallback() { _temperatureManager.Update(); _temperatureManager.Accept(_cache.AsWriteOnly()); return(true); }
static void Main(string[] args) { TemperatureManager temperatureManager = new TemperatureManager(); temperatureManager.Update(); }