public SimpleClass(ClassWithEvent classWithEvent) { _classWithEvent = classWithEvent; classWithEvent.ValueChanged += OnValueChanged; }
public void GlobalSetup() { _classWithEvent = new ClassWithEvent(); _simpleClasses = new List <SimpleClass>(Enumerable.Range(0, 100_000).Select(_ => new SimpleClass(_classWithEvent))); }