コード例 #1
0
        public void when_resolving_all_with_type_obviously_should_delegate_to_underlying_container()
        {
            var inner = new Mock<IWindsorContainer>(MockBehavior.Loose);
            var sut = new CastleContainer(inner.Object);

            sut.GetAll(typeof(given_a_simple_container.Interfaze));

            inner.Verify(x => x.ResolveAll(It.Is<Type>(x1 => x1.Equals(typeof (given_a_simple_container.Interfaze)))));
        }
コード例 #2
0
        public void when_resolving_all_with_type_obviously_should_delegate_to_underlying_container()
        {
            var inner = new Mock <IWindsorContainer>(MockBehavior.Loose);
            var sut   = new CastleContainer(inner.Object);

            sut.GetAll(typeof(given_a_simple_container.Interfaze));

            inner.Verify(x => x.ResolveAll(It.Is <Type>(x1 => x1.Equals(typeof(given_a_simple_container.Interfaze)))));
        }
コード例 #3
0
        public void when_resolving_all_obviously_should_delegate_to_underlying_container()
        {
            var inner = new Mock<IWindsorContainer>(MockBehavior.Loose);
            var sut = new CastleContainer(inner.Object);

            sut.GetAll<given_a_simple_container.Interfaze>();

            inner.Verify(x => x.ResolveAll<given_a_simple_container.Interfaze>());
        }
コード例 #4
0
        public void when_resolving_all_obviously_should_delegate_to_underlying_container()
        {
            var inner = new Mock <IWindsorContainer>(MockBehavior.Loose);
            var sut   = new CastleContainer(inner.Object);

            sut.GetAll <given_a_simple_container.Interfaze>();

            inner.Verify(x => x.ResolveAll <given_a_simple_container.Interfaze>());
        }