private void AssertEvent(PowerplaySalaryEvent @event) { Assert.NotNull(@event); Assert.Equal(DateTime.Parse("2016-06-10T14:32:03Z"), @event.Timestamp); Assert.Equal(EventName, @event.Event); Assert.Equal("Li Yong-Rui", @event.Power); Assert.Equal(10, @event.Amount); }
internal PowerplaySalaryEvent InvokeEvent(PowerplaySalaryEvent arg) { if (_api.ValidateEvent(arg)) { PowerplaySalary?.Invoke(_api, arg); } return(arg); }
internal void InvokePowerplaySalaryEvent(PowerplaySalaryEvent arg) { PowerplaySalaryEvent?.Invoke(this, arg); }
internal void InvokePowerplaySalaryEvent(PowerplaySalaryEvent arg) => PowerplaySalaryEvent?.Invoke(null, arg);