internal CrewAssignEvent InvokeEvent(CrewAssignEvent arg)
 {
     if (_api.ValidateEvent(arg))
     {
         CrewAssign?.Invoke(_api, arg);
     }
     return(arg);
 }
Exemple #2
0
 private static void AssertEvent(CrewAssignEvent @event)
 {
     Assert.NotNull(@event);
     Assert.Equal(DateTime.Parse("2016-08-09T08:45:31Z"), @event.Timestamp);
     Assert.Equal(EventName, @event.Event);
     Assert.Equal("Dannie Koller", @event.Name);
     Assert.Equal("Active", @event.Role);
     Assert.Equal(0, @event.CrewId);
 }
Exemple #3
0
 internal void InvokeCrewAssignEvent(CrewAssignEvent arg)
 {
     CrewAssignEvent?.Invoke(this, arg);
 }
Exemple #4
0
 internal void InvokeCrewAssignEvent(CrewAssignEvent arg) => CrewAssignEvent?.Invoke(null, arg);