Beispiel #1
0
 internal BuyDronesEvent InvokeEvent(BuyDronesEvent arg)
 {
     if (_api.ValidateEvent(arg))
     {
         BuyDrones?.Invoke(_api, arg);
     }
     return(arg);
 }
Beispiel #2
0
 private void AssertEvent(BuyDronesEvent @event)
 {
     Assert.NotNull(@event);
     Assert.Equal(DateTime.Parse("2019-09-01T13:27:58Z"), @event.Timestamp);
     Assert.Equal(EventName, @event.Event);
     Assert.Equal("Drones", @event.Type);
     Assert.Equal(4, @event.Count);
     Assert.Equal(101, @event.BuyPrice);
     Assert.Equal(404, @event.TotalCost);
 }
Beispiel #3
0
 internal void InvokeBuyDronesEvent(BuyDronesEvent arg)
 {
     BuyDronesEvent?.Invoke(this, arg);
 }
Beispiel #4
0
 internal void InvokeBuyDronesEvent(BuyDronesEvent arg) => BuyDronesEvent?.Invoke(null, arg);