private void AssertEvent(SupercruiseEntryEvent @event) { Assert.NotNull(@event); Assert.Equal(DateTime.Parse("2019-09-08T10:17:43Z"), @event.Timestamp); Assert.Equal(EventName, @event.Event); Assert.Equal("Scylla", @event.StarSystem); Assert.Equal(2008064955082, @event.SystemAddress); }
internal SupercruiseEntryEvent InvokeEvent(SupercruiseEntryEvent arg) { if (_api.ValidateEvent(arg)) { SupercruiseEntry?.Invoke(_api, arg); } return(arg); }
internal void InvokeSupercruiseEntryEvent(SupercruiseEntryEvent arg) { SupercruiseEntryEvent?.Invoke(this, arg); }
internal void InvokeSupercruiseEntryEvent(SupercruiseEntryEvent arg) => SupercruiseEntryEvent?.Invoke(null, arg);