internal SaaSignalsFoundEvent InvokeEvent(SaaSignalsFoundEvent arg) { if (_api.ValidateEvent(arg)) { SaaSignalsFound?.Invoke(_api, arg); } return(arg); }
private void AssertEvent(SaaSignalsFoundEvent @event) { Assert.NotNull(@event); Assert.Equal(DateTime.Parse("2019-04-17T13:38:18Z"), @event.Timestamp); Assert.Equal(EventName, @event.Event); Assert.Equal("Hermitage 4 A Ring", @event.BodyName); Assert.Equal(11, @event.BodyId); Assert.Equal(5363877956440, @event.SystemAddress); Assert.Equal("LowTemperatureDiamond", @event.Signals[0].Type); Assert.Equal("Low Temperature Diamonds", @event.Signals[0].TypeLocalised); Assert.Equal(1, @event.Signals[0].Count); Assert.Equal("Alexandrite", @event.Signals[1].Type); Assert.Null(@event.Signals[1].TypeLocalised); Assert.Equal(2, @event.Signals[1].Count); }
internal void InvokeSaaSignalsFoundEvent(SaaSignalsFoundEvent arg) { SaaSignalsFoundEvent?.Invoke(this, arg); }