public void InjectionOfNonRegisteredInterfaceTypePropertyShouldFail()
        {
            SimpleContainer c = new SimpleContainer();

            Assert.ThrowsException <ArgumentException>(() =>
            {
                ClassWithInterfaceAsProperty a = c.Resolve <ClassWithInterfaceAsProperty>();
            });
        }
        public void InjectionOfInterfaceTypeProperty()
        {
            SimpleContainer c = new SimpleContainer();

            c.RegisterType <IBaz, Baz>(false);
            ClassWithInterfaceAsProperty a = c.Resolve <ClassWithInterfaceAsProperty>();

            Assert.IsNotNull(a.TheIbaz);
        }
        public void BuildUpOfNonRegisteredInterfaceTypePropertyShouldFail()
        {
            SimpleContainer c = new SimpleContainer();
            ClassWithInterfaceAsProperty a = new ClassWithInterfaceAsProperty();

            Assert.ThrowsException <ArgumentException>(() =>
            {
                c.BuildUp(a);
            });
        }
        public void BuildUpOfInterfaceTypeProperty()
        {
            SimpleContainer c = new SimpleContainer();


            ClassWithInterfaceAsProperty a = new ClassWithInterfaceAsProperty();

            c.RegisterType <IBaz, Baz>(false);
            c.BuildUp(a);

            Assert.IsNotNull(a.TheIbaz);
        }