private void AssertEvent(PvpKillEvent @event) { Assert.NotNull(@event); Assert.Equal(DateTime.Parse("2019-09-03T13:38:51Z"), @event.Timestamp); Assert.Equal(EventName, @event.Event); // TODO: More tests here }
internal PvpKillEvent InvokeEvent(PvpKillEvent arg) { if (_api.ValidateEvent(arg)) { PvpKill?.Invoke(_api, arg); } return(arg); }
internal void InvokePvpKillEvent(PvpKillEvent arg) { PvpKillEvent?.Invoke(this, arg); }
private async void CombatEventsOnPvpKillAsync(object sender, PvpKillEvent e) => await AddCommand(new AddCommanderCombatKill(_eliteAPI.Location?.StarSystem?.Name, e.Victim)) .SendAsync() .ConfigureAwait(false);