Exemplo n.º 1
0
 internal RestockVehicleEvent InvokeEvent(RestockVehicleEvent arg)
 {
     if (_api.ValidateEvent(arg))
     {
         RestockVehicle?.Invoke(_api, arg);
     }
     return(arg);
 }
 private static void AssertEvent(RestockVehicleEvent @event)
 {
     Assert.NotNull(@event);
     Assert.Equal(DateTime.Parse("2016-06-10T14:32:03Z"), @event.Timestamp);
     Assert.Equal(EventName, @event.Event);
     Assert.Equal("SRV", @event.Type);
     Assert.Equal("starter", @event.Loadout);
     Assert.Equal(1030, @event.Cost);
     Assert.Equal(1, @event.Count);
 }
Exemplo n.º 3
0
 internal void InvokeRestockVehicleEvent(RestockVehicleEvent arg)
 {
     RestockVehicleEvent?.Invoke(this, arg);
 }
Exemplo n.º 4
0
 internal void InvokeRestockVehicleEvent(RestockVehicleEvent arg) => RestockVehicleEvent?.Invoke(null, arg);