public void Setup() { //eventTotest = null; _uut = new FlightAirspace.Airspace(validator, 80000, 80000, 500, 20000); //_uut.FlightAddedEvent += (o, args) => //{ // eventTotest = args; //}; }
public void Setup() { _eventRaised = false; _eventToTest = null; _eventSource = null; _flightValidator = Substitute.For <IValidator>(); _uut = new FlightAirspace.Airspace(_flightValidator, 80000, 80000, 500, 20000); //_uut.FlightAddedEvent += (sender, args) => _eventRaised = true; _uut.FlightAddedEvent += (sender, args) => { _eventRaised = true; _eventToTest = args; _eventSource = sender; }; }