internal DockingCancelledEvent InvokeEvent(DockingCancelledEvent arg) { if (_api.ValidateEvent(arg)) { DockingCancelled?.Invoke(_api, arg); } return(arg); }
private void AssertEvent(DockingCancelledEvent @event) { Assert.NotNull(@event); Assert.Equal(DateTime.Parse("2019-09-08T09:53:44Z"), @event.Timestamp); Assert.Equal(EventName, @event.Event); Assert.Equal("Krikalev Hangar", @event.StationName); Assert.Equal("Outpost", @event.StationType); Assert.Equal(3223662592, @event.MarketId); }
public void TestJournalDockingCancelled() { string line = @"{ ""timestamp"":""2018-06-04T07:43:11Z"", ""event"":""DockingCancelled"", ""MarketID"":3227840768, ""StationName"":""Laval Terminal"", ""StationType"":""Orbis"" }"; List <Event> events = JournalMonitor.ParseJournalEntry(line); Assert.IsTrue(events.Count == 1); DockingCancelledEvent theEvent = (DockingCancelledEvent)events[0]; Assert.AreEqual("Orbis", theEvent.stationDefinition.basename); Assert.AreEqual("Laval Terminal", theEvent.station); }
public void DockingCancelledEvent(DockingCancelledEvent e) { LandingPad.Destroy(); }
internal void InvokeDockingCancelledEvent(DockingCancelledEvent arg) { DockingCancelledEvent?.Invoke(this, arg); }
private void DockingCancelledCallback(DockingCancelledEvent obj) { SetValue(() => DockingState, DockingStates.Cancelled); SetValue(() => DockLandingPad, null); }
internal void InvokeDockingCancelledEvent(DockingCancelledEvent arg) => DockingCancelledEvent?.Invoke(null, arg);