public void AllInjectionsWorkFromNongenericMethods()
        {
            IUnityContainer container = new UnityContainer()
                                        .RegisterType(typeof(ILogger), typeof(MockLogger));

            ObjectWithLotsOfDependencies obj = (ObjectWithLotsOfDependencies)container.Resolve(typeof(ObjectWithLotsOfDependencies));

            obj.Validate();
        }
        public void ShouldDoAllInjections()
        {
            IUnityContainer container = new UnityContainer()
                                        .RegisterType <ILogger, MockLogger>();

            ObjectWithLotsOfDependencies obj = container.Resolve <ObjectWithLotsOfDependencies>();

            Assert.IsNotNull(obj);
            obj.Validate();
        }