コード例 #1
0
ファイル: InjectorTests.cs プロジェクト: cgarciae/adic
        public void TestCallPostConstruct()
        {
            var instance = new MockClassWithPostConstruct();

            instance = this.injector.Inject<MockClassWithPostConstruct>(instance);

            Assert.IsTrue(instance.hasCalledPostConstructor);
        }
コード例 #2
0
ファイル: InjectorTests.cs プロジェクト: NotYours180/adic
        public void TestCallPostConstruct()
        {
            var instance = new MockClassWithPostConstruct();

            instance = this.injector.Inject <MockClassWithPostConstruct>(instance);

            Assert.IsTrue(instance.hasCalledPostConstructor);
        }