Exemplo n.º 1
0
 private void AssertEvent(PowerplayFastTrackEvent @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);
     Assert.Equal(10, @event.Cost);
 }
 internal PowerplayFastTrackEvent InvokeEvent(PowerplayFastTrackEvent arg)
 {
     if (_api.ValidateEvent(arg))
     {
         PowerplayFastTrack?.Invoke(_api, arg);
     }
     return(arg);
 }
Exemplo n.º 3
0
 internal void InvokePowerplayFastTrackEvent(PowerplayFastTrackEvent arg)
 {
     PowerplayFastTrackEvent?.Invoke(this, arg);
 }
Exemplo n.º 4
0
 internal void InvokePowerplayFastTrackEvent(PowerplayFastTrackEvent arg) => PowerplayFastTrackEvent?.Invoke(null, arg);