AddEvent() public method

public AddEvent ( Event fieldEvent ) : void
fieldEvent Event
return void
 public void Setup()
 {
     Bootstrapper.BootstrapTest();
     _systemClock = SystemClock.For(DateTime.Parse("1/1/2020 8:00 AM"));
     _field = ObjectMother.ValidField("Raif").WithEntityId(1);
     _event1 = ObjectMother.ValidEvent("event1").WithEntityId(1);
     _event1.StartTime = DateTime.Parse("1/2/2020 8:00 AM");
     _event2 = ObjectMother.ValidEvent("event1").WithEntityId(2);
     _event2.StartTime = DateTime.Parse("1/3/2020 8:00 AM");
     _event3 = ObjectMother.ValidEvent("event1").WithEntityId(3);
     _event3.StartTime = DateTime.Parse("1/1/2010 8:00 AM");
     _field.AddEvent(_event1);
     _field.AddEvent(_event2);
     _field.AddEvent(_event3);
     _SUT = new FieldHasNoOutstandingEvents(_systemClock);
     _ruleResult = _SUT.Execute(_field);
 }