private void AssertEvent(PowerplayLeaveEvent @event)
 {
     Assert.NotNull(@event);
     Assert.Equal(DateTime.Parse("2016-06-10T14:32:03Z"), @event.Timestamp);
     Assert.Equal(EventName, @event.Event);
     Assert.Equal("Li Yong-Rui", @event.Power);
 }
 internal PowerplayLeaveEvent InvokeEvent(PowerplayLeaveEvent arg)
 {
     if (_api.ValidateEvent(arg))
     {
         PowerplayLeave?.Invoke(_api, arg);
     }
     return(arg);
 }
Exemplo n.º 3
0
 internal void InvokePowerplayLeaveEvent(PowerplayLeaveEvent arg)
 {
     PowerplayLeaveEvent?.Invoke(this, arg);
 }
Exemplo n.º 4
0
 internal void InvokePowerplayLeaveEvent(PowerplayLeaveEvent arg) => PowerplayLeaveEvent?.Invoke(null, arg);