예제 #1
0
        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));
        }
예제 #2
0
        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));
        }