public void SendMessageShouldDeliverMessageInCurrentFrame() { var count = 0; _bus.Send(new TestMessage(1)); foreach (var message in _bus.All <TestMessage>()) { Assert.AreEqual(1, message.Value); count++; } Assert.AreEqual(1, count); }
public static MessageEnumerable <ComponentRemoved <TScope, TComponent> > AllComponentRemoved <TScope, TComponent>(this MessageBus bus) { return(bus.All <ComponentRemoved <TScope, TComponent> >()); }