public void shouldInjectionPublicFieldWithAttribute() { SimpleContainer simpleContainer = new SimpleContainer(); DI3Foo2 fs = simpleContainer.Resolve <DI3Foo2>(); Assert.IsTrue(fs.field1 != null); }
public void shouldBuildUpObjectWithOneField() { SimpleContainer simpleContainer = new SimpleContainer(); DI3Foo2 fs = new DI3Foo2(); simpleContainer.BuildUp <DI3Foo2>(fs); Assert.IsTrue(fs.field1 != null); }