示例#1
0
        public void PicksUpRandomPrivateHandlerWhenDoingAutoRegistration()
        {
            var container = new WindsorContainer();

            container.AutoRegisterHandlersFromThisAssembly();

            var secretHandlers = container.ResolveAll <IHandleMessages <Secret> >();

            Assert.That(secretHandlers.Length, Is.EqualTo(1));
            Assert.That(secretHandlers.Single(), Is.TypeOf <SecretHandler>());
        }