internal ModuleSwapEvent InvokeEvent(ModuleSwapEvent arg) { if (_api.ValidateEvent(arg)) { ModuleSwap?.Invoke(_api, arg); } return(arg); }
private static void AssertEvent(ModuleSwapEvent @event) { Assert.NotNull(@event); Assert.Equal(DateTime.Parse("2019-09-01T13:18:14Z"), @event.Timestamp); Assert.Equal(EventName, @event.Event); Assert.Equal(3223388416, @event.MarketId); Assert.Equal(2, @event.ShipId); Assert.Equal("cobramkiii", @event.ShipType); Assert.Equal(ShipModel.CobraMkIII, @event.ShipModel); Assert.Equal("Slot03_Size4", @event.FromSlot); Assert.Equal("Slot02_Size4", @event.ToSlot); Assert.Equal("$int_fuelscoop_size4_class3_name;", @event.FromItem); Assert.Equal("Топливозаборник", @event.FromItemLocalised); Assert.Equal("$int_cargorack_size4_class1_name;", @event.ToItem); Assert.Equal("Груз. стеллаж", @event.ToItemLocalised); }
internal void InvokeModuleSwapEvent(ModuleSwapEvent arg) { ModuleSwapEvent?.Invoke(this, arg); }
internal void InvokeModuleSwapEvent(ModuleSwapEvent arg) => ModuleSwapEvent?.Invoke(null, arg);