public void Resolver_should_return_null_when_type_requested_not_registered()
        {
            var container = new UnityContainer();
            var resolver = new UnityDependencyResolver(container);
            var resolved = resolver.GetService(typeof (IFoo));

            Assert.Null(resolved);
        }
        public void Resolver_should_return_type_when_type_has_been_registered()
        {
            var container = new UnityContainer();
            container.RegisterType<IFoo, Foo>();

            var resolver = new UnityDependencyResolver(container);
            var resolved = resolver.GetService(typeof(IFoo));

            Assert.IsType<Foo>(resolved);
        }