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); }
internal ShieldStateEvent InvokeEvent(ShieldStateEvent arg) { if (_api.ValidateEvent(arg)) { ShieldState?.Invoke(_api, arg); } return(arg); }
internal void InvokeShieldStateEvent(ShieldStateEvent arg) { ShieldStateEvent?.Invoke(this, arg); }
internal void InvokeShieldStateEvent(ShieldStateEvent arg) => ShieldStateEvent?.Invoke(null, arg);