Exemple #1
0
        public void TestCallPostConstruct()
        {
            var instance = new MockClassWithPostConstruct();

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

            Assert.IsTrue(instance.hasCalledPostConstructor);
        }
Exemple #2
0
        public void TestCallPostConstruct()
        {
            var instance = new MockClassWithPostConstruct();

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

            Assert.IsTrue(instance.hasCalledPostConstructor);
        }