private void LogState() { IBoiler boiler = _repo.Retrieve(); BoilerStatus bs = new BoilerStatus(boiler); bs.LoggedDate = DateTime.Now; _logger.Save(bs); }