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

            c.RegisterType <Foo>(true);

            ClassWithTwoPropertiesOfSameType a = c.Resolve <ClassWithTwoPropertiesOfSameType>();

            Assert.IsNotNull(a.TheFoo);
            Assert.AreEqual(a.TheFoo, a.TheFoo2);
        }
        public void BuildUpOfTypeRegistredAsSingletonInOneObject()
        {
            SimpleContainer c = new SimpleContainer();

            c.RegisterType <Foo>(true);

            ClassWithTwoPropertiesOfSameType a = new ClassWithTwoPropertiesOfSameType();

            c.BuildUp(a);

            Assert.IsNotNull(a.TheFoo);
            Assert.AreEqual(a.TheFoo, a.TheFoo2);
        }