public void GetServices_UnknownService_ReturnsEmptyEnumerable()
        {
            var container = CreateContainer();

            container.Register <IBar, Bar>();
            IDependencyResolver resolver = new LightInjectWebApiDependencyResolver(container);

            var instances = resolver.GetServices(typeof(IFoo));

            Assert.AreEqual(0, instances.Count());
        }
        public void GetServices_MultipleServices_ReturnsAllInstances()
        {
            var container = CreateContainer();

            container.Register <IFoo, Foo>();
            container.Register <IFoo, AnotherFoo>("AnotherFoo");
            IDependencyResolver resolver = new LightInjectWebApiDependencyResolver(container);

            var instances = resolver.GetServices(typeof(IFoo));

            Assert.AreEqual(2, instances.Count());
        }