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 RemoveRouteArrival(string routeId) { _timetable.Remove(routeId); return(Task.CompletedTask); }