public void Setup() { _eventRecorder = new EventRecorder(); _pulishTasks = new Task[MessageQty]; var busFactory = new EvendBusDIFactory(); _bus = busFactory.GetBus(SubsQty); }
private static void SetupAndRun(int subsQty) { var busFactory = new EvendBusDIFactory(); var bus = busFactory.GetBus(subsQty); var eventRecorder = busFactory.ServiceProvider.GetRequiredService <EventRecorder>(); var benchmark = new EventBusPoorManBenchmark(bus, eventRecorder); RunBenchmark(benchmark, subsQty); bus.Dispose(); }