Beispiel #1
0
        public void Remove_BasicTest(ITimetable timetable)
        {
            timetable.AddOrUpdate("a", 100);
            timetable.AddOrUpdate("b", 50);
            timetable.Remove("a");

            var items = timetable.GetTimetable();

            items.Count.Should().Be(1);
            items[0].RouteId.Should().Be("b");
            items[0].MsBeforeArrival.Should().Be(50);
        }
 public Task UpdateRouteArrival(string routeId, double msBeforeArrival)
 {
     _timetable.AddOrUpdate(routeId, msBeforeArrival);
     return(Task.CompletedTask);
 }