private void Execute(Timer timer, TimeCounters counters, IClocks clocks) { timer.Stop(); counters.Hours = 0; counters.Minuts = 0; counters.Seconds = 0; clocks.HoursInDay = 24; clocks.MinutsInHour = 60; clocks.SecondsInMinute = 60; clocks.date = new DateTime(0, 0, 0, 0, 0, 0); }
public void DateCheck(IClocks superClock) { if (counters.Hours == HoursInDay) { this.date = this.date.AddDays(1); counters.Hours = 0; } if (counters.Minuts == MinutsInHour) { counters.Hours++; counters.Minuts = 0; } if (counters.Seconds == SecondsInMinute) { counters.Minuts++; counters.Seconds = 0; } }
public Katas(IClocks clock) { this.clock = clock; }
public void WatchTime(IClocks clocks) { clocks.GetTime(); }
public void ChangeTime(IClocks clocks) { clocks.SetTime(10, 40, 36); }