Пример #1
0
 public MainWindowViewModel()
 {
     _keeper = new TimeKeeper(new Clock());
     _timer = new Timer(x =>
                            {
                                _keeper.Notify();
                                TotalCost = _keeper.TotalCost;
                            }, null, -1, _interval * 1000);
 }
Пример #2
0
 public void SetUp()
 {
     _clock = new FakeClock();
     _keeper = new TimeKeeper(_clock);
     Assert.That(_keeper.IsRunning, Is.False);
 }