AutoMoq.Tests.CallingCreateTwice.resolving_the_same_type_twice_with_unity C# (CSharp) Method

resolving_the_same_type_twice_with_unity() private method

private resolving_the_same_type_twice_with_unity ( ) : void
return void
        public void resolving_the_same_type_twice_with_unity()
        {
            var container = new UnityContainer();

            var grandChild = new Mock<IGrandChild>().Object;
            container.RegisterInstance(grandChild);

            container.Resolve<Child>();
            container.Resolve<Child>();
        }