Esempio n. 1
0
 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
 }
Esempio n. 2
0
 internal PvpKillEvent InvokeEvent(PvpKillEvent arg)
 {
     if (_api.ValidateEvent(arg))
     {
         PvpKill?.Invoke(_api, arg);
     }
     return(arg);
 }
Esempio n. 3
0
 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);