public void TestMethod1() { var bus = new InMemoryMessageBus(); var lHandler = new CreateCommandHandlers(); CreateCommand lCommand = new CreateCommand(Guid.NewGuid()); bus.RegisterHandler<CreateCommand>(lHandler.Handle); bus.Send(lCommand); Assert.IsTrue(lHandler.HandledIds.Contains(lCommand.Id)); }
public void TestMethod1() { var bus = new InMemoryMessageBus(); var lHandler = new CreateCommandHandlers(); CreateCommand lCommand = new CreateCommand(Guid.NewGuid()); bus.RegisterHandler <CreateCommand>(lHandler.Handle); bus.Send(lCommand); Assert.IsTrue(lHandler.HandledIds.Contains(lCommand.Id)); }