private void AssertEvent(ShieldStateEvent @event)
 {
     Assert.NotNull(@event);
     Assert.Equal(DateTime.Parse("2016-07-25T14:46:36Z"), @event.Timestamp);
     Assert.Equal(EventName, @event.Event);
     Assert.True(@event.ShieldsUp);
 }
Example #2
0
 internal ShieldStateEvent InvokeEvent(ShieldStateEvent arg)
 {
     if (_api.ValidateEvent(arg))
     {
         ShieldState?.Invoke(_api, arg);
     }
     return(arg);
 }
Example #3
0
 internal void InvokeShieldStateEvent(ShieldStateEvent arg)
 {
     ShieldStateEvent?.Invoke(this, arg);
 }
Example #4
0
 internal void InvokeShieldStateEvent(ShieldStateEvent arg) => ShieldStateEvent?.Invoke(null, arg);