Esempio n. 1
0
 internal PayFinesEvent InvokeEvent(PayFinesEvent arg)
 {
     if (_api.ValidateEvent(arg))
     {
         PayFines?.Invoke(_api, arg);
     }
     return(arg);
 }
 private static void AssertEvent(PayFinesEvent @event)
 {
     Assert.NotNull(@event);
     Assert.Equal(DateTime.Parse("2018-03-19T10:24:21Z"), @event.Timestamp);
     Assert.Equal(EventName, @event.Event);
     Assert.Equal(250, @event.Amount);
     Assert.Equal("Batz Transport Commodities", @event.Faction);
     Assert.False(@event.AllFines);
 }
Esempio n. 3
0
 internal void InvokePayFinesEvent(PayFinesEvent arg)
 {
     PayFinesEvent?.Invoke(this, arg);
 }
Esempio n. 4
0
 internal void InvokePayFinesEvent(PayFinesEvent arg) => PayFinesEvent?.Invoke(null, arg);