Exemple #1
0
        public void shouldInjectionPublicFieldWithAttribute()
        {
            SimpleContainer simpleContainer = new SimpleContainer();
            DI3Foo2         fs = simpleContainer.Resolve <DI3Foo2>();

            Assert.IsTrue(fs.field1 != null);
        }
Exemple #2
0
        public void shouldBuildUpObjectWithOneField()
        {
            SimpleContainer simpleContainer = new SimpleContainer();
            DI3Foo2         fs = new DI3Foo2();

            simpleContainer.BuildUp <DI3Foo2>(fs);
            Assert.IsTrue(fs.field1 != null);
        }