public void A_reactive_query_is_observing_a_bus_message() { _observable = LocalBus.AsObservable <PingMessage>(); _thatJustHappened = new Future <PingMessage>(); _subscription = _observable.Subscribe(m => _thatJustHappened.Complete(m)); LocalBus.Publish(new PingMessage()); }
public void A_Rx_Query_Is_Setup() { obs = LocalBus.AsObservable <PingMessage>(); obs.Subscribe(m => _observed = true); }