Exemplo n.º 1
0
        public void can_locate_a_type_handler()
        {
            Func <object> handler = () => new TestService();

            container.AddHandler(typeof(ITestService), handler);

            var found = container.GetHandler(typeof(ITestService));

            found.ShouldBe(handler);
        }