public void StartNewRound() { currentTime = stopWatch; dojoTeam.GetNextTeamMembers(); stopWatch.StartRound(roundTime); timer.Start(); UpdateCurrentTime(); }
public Dojo() { roundTime.SetTime(new TimeSpan(0, 8, 0)); roundTime.TimeChanged += (sender, args) => UpdateCurrentTime(); stopWatch.TimeChanged += (sender, args) => UpdateCurrentTime(); dojoTeam.PropertyChanged += (sender, args) => UpdateTeamMembers(); currentTime = roundTime; timer = new DojoUpdatingTimer(stopWatch, 1000.0); dojoTeam.Queue.Enqueue(new Coder("Albert Weinert")); dojoTeam.Queue.Enqueue(new Coder("Ilker Cetinkaya")); dojoTeam.Queue.Enqueue(new Coder("Christina Hirth")); dojoTeam.Queue.Enqueue(new Coder("Christian Deger")); }
public void StartRound(IDojoTime dojoTime) { currentTime = DateTime.Now; endTime = currentTime.Add(dojoTime.Time); OnTimeChanged(); }
protected override void EstablishContext() { RoundTimeSixMinutes = An <IDojoTime>(); RoundTimeSixMinutes.WhenToldTo(rt => rt.Time).Return(new TimeSpan(0, 6, 0)); }