public void SubscribeToCommand_TCommand_invokes_bus_engine() { var sut = CreateSystemUnderTest(); sut.SubscribeToCommand <TestCommand>(); Assert.That(testBusEngine.IsCommandHandled <TestCommand>()); }
public void InMemoryBusEngine_IsCommandHandled_is_true_when_ObserveCommand() { var busEngine = new InMemoryBusEngine(); var builder = new NybusBusBuilder(busEngine); var observable = builder.ObserveCommand <TestCommand>(); busEngine.IsCommandHandled <TestCommand>(); }