Exemplo n.º 1
0
        public void AddHandlers_should_discover_and_add_all_command_handlers()
        {
            var receiveRegistration = MockRepository.GenerateStub <IReceiveRegistration> ();

            executorService.AddHandlers(receiveRegistration);

            receiveRegistration.AssertWasCalled(x => x.Add <string> (Arg <Action <string> > .Is.Anything));
        }