예제 #1
0
        public void Should_Provide_Callbacks_Greedily()
        {
            var handler = new CustomHandler() + new CustomHandler();
            var bars    = handler.ResolveAll <Bar>();

            Assert.AreEqual(4, bars.Length);
            bars = handler.ResolveAll <SuperBar>();
            Assert.AreEqual(2, bars.Length);
        }
예제 #2
0
        public void Should_Provide_All_Callbacks()
        {
            var handler = new CustomHandler();
            var bars    = handler.ResolveAll <Bar>();

            Assert.AreEqual(2, bars.Length);
        }