Example #1
0
 private static void AssertEvent(RepairAllEvent @event)
 {
     Assert.NotNull(@event);
     Assert.Equal(DateTime.Parse("2019-09-09T13:01:13Z"), @event.Timestamp);
     Assert.Equal(EventName, @event.Event);
     Assert.Equal(242, @event.Cost);
 }
Example #2
0
 internal RepairAllEvent InvokeEvent(RepairAllEvent arg)
 {
     if (_api.ValidateEvent(arg))
     {
         RepairAll?.Invoke(_api, arg);
     }
     return(arg);
 }
Example #3
0
 internal void InvokeRepairAllEvent(RepairAllEvent arg)
 {
     RepairAllEvent?.Invoke(this, arg);
 }
Example #4
0
 internal void InvokeRepairAllEvent(RepairAllEvent arg) => RepairAllEvent?.Invoke(null, arg);