public void TestInit() { SmartContext.Initialize(); var t0 = SmartContext.Current.Resolve <TestClass>(); var t1 = SmartContext.Current.Resolve <TestClass2>(); var t2 = SmartContext.Current.Resolve <IT <TestClass> >(); var t3 = SmartContext.Current.Resolve <IT <TestClass2> >(); var t4 = SmartContext.Current.Resolve <IT <TestClass, TestClass2> >(); var s1 = SmartContext.Current.Resolve <IService1>(); var s2 = SmartContext.Current.Resolve <IService2>(); var s3 = SmartContext.Current.Resolve <IService3>(); Thread.Sleep(2000); var s11 = SmartContext.Current.Resolve <IService1>(); var s22 = SmartContext.Current.Resolve <IService2>(); var s33 = SmartContext.Current.Resolve <IService3>(); }