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

ShouldNotCreateObjectOnSecondResolve() private method

private ShouldNotCreateObjectOnSecondResolve ( ) : void
return void
        public void ShouldNotCreateObjectOnSecondResolve()
        {
            // given

            // when
            var obj1 = container.Resolve<IInterface1>();
            calledConstructors.Clear();
            var obj2 = container.Resolve<IInterface1>();

            // then
            CollectionAssert.IsEmpty(calledConstructors);
        }