Esempio n. 1
0
        public void openGenericGenerator()
        {
            var builder = new Konstruktor();

            builder.registerGeneratorsIn(GetType());

            using (var scope = builder.beginScope())
            {
                var shared = scope.resolve <IShared2 <Dummy> >();
                Assert.AreEqual(typeof(Shared2 <Dummy>), shared.GetType());

                var shared2 = scope.resolve <IShared2 <Dummy> >();
                Assert.AreEqual(shared, shared2);
            }
        }