BoDi.Tests.ObjectCreationTests.Setup C# (CSharp) Method

Setup() private method

private Setup ( ) : void
return void
        public void Setup()
        {
            // given
            container = new ObjectContainer();
            container.RegisterTypeAs<IInterface1>(typeof(ConstructorTrackingClass));

            calledConstructors = new List<ConstructorTrackingClass>();
            constructorTrackingClassOnConstructorCalled = ctc => calledConstructors.Add(ctc);
            ConstructorTrackingClass.ConstructorCalled += constructorTrackingClassOnConstructorCalled;
        }