Exemplo n.º 1
0
        public void BuildUpNotPerformed()
        {
            var container = new Container();
            var a = new ClassWithDependency();
            container.RegisterInstance(a);
            container.RegisterType<ClassA>();

            var b = container.Resolve<ClassWithDependency>();
            Assert.IsNull(b.Dependency);
        }
        public void BuildUpNotPerformed()
        {
            var container = new Container();
            var a         = new ClassWithDependency();

            container.RegisterInstance(a);
            container.RegisterType <ClassA>();

            var b = container.Resolve <ClassWithDependency>();

            Assert.IsNull(b.Dependency);
        }