internal ModuleStoreEvent InvokeEvent(ModuleStoreEvent arg) { if (_api.ValidateEvent(arg)) { ModuleStore?.Invoke(_api, arg); } return(arg); }
private static void AssertEvent(ModuleStoreEvent @event) { Assert.NotNull(@event); Assert.Equal(DateTime.Parse("2019-09-01T12:56:39Z"), @event.Timestamp); Assert.Equal(EventName, @event.Event); Assert.Equal(3223388416, @event.MarketId); Assert.Equal(2, @event.ShipId); Assert.Equal("adder", @event.ShipType); Assert.Equal(ShipModel.Adder, @event.ShipModel); Assert.Equal("MediumHardpoint1", @event.Slot); Assert.Equal("$hpt_multicannon_gimbal_medium_name;", @event.StoredItem); Assert.Equal("Многоствольное орудие", @event.StoredItemLocalised); Assert.False(@event.Hot); }
internal void InvokeModuleStoreEvent(ModuleStoreEvent arg) { ModuleStoreEvent?.Invoke(this, arg); }
internal void InvokeModuleStoreEvent(ModuleStoreEvent arg) => ModuleStoreEvent?.Invoke(null, arg);