AutoMoq.Tests.CallingCreateTwice.resolving_the_same_type_twice_with_unity C# (CSharp) Méthode

resolving_the_same_type_twice_with_unity() private méthode

private resolving_the_same_type_twice_with_unity ( ) : void
Résultat 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>();
        }