public static void GenerateEventList(TestContext context) { var throttle = new Throttle(MaxEvents, TimeSpan); for (int i = 0; i < TotalEvents; i++) { var id = i; throttle.Execute(() => { Events.Add(new Event { Id = id, Time = DateTime.Now }); }); } }
public static void GenerateEventList(TestContext context) { var throttle = new Throttle(maxEvents, timeSpan); for (int i = 0; i < totalEvents; i++) { throttle.Execute(() => { events.Add(new Event { id = i, time = DateTime.Now }); }); } }
public static void GenerateEventList(TestContext context) { var throttle = new Throttle(MaxEvents, TimeSpan); for (int i = 0; i < TotalEvents; i++) { var id = i; throttle.Execute(() => { Events.Add(new Event { Id = id, Time = DateTime.Now }); }); } }