GetServices() public method

public GetServices ( Type serviceType ) : IEnumerable
serviceType System.Type
return IEnumerable
        public void GetServices_WithTwoRegistration_ReturnsTwoEntities() {
            // arrange
            var builder = new ContainerBuilder();
            builder.RegisterType<SimpleType>().AsImplementedInterfaces();
            builder.RegisterType<AnotherType>().AsImplementedInterfaces();
            var container = builder.Build();
            var resolver = new AutofacDependencyResolver(container);

            // act
            var result = resolver.GetServices(typeof(ISomeType));

            Assert.True(result.Count() == 2);
        }
        public void GetServices_WithUnrelatedFuncs_ReturnsEmptyList() {
            // arrange
            var builder = new ContainerBuilder();
            var container = builder.Build();
            var resolver = new AutofacDependencyResolver(container);

            var registrations = new List<Func<object>>();
            registrations.Add(() => new SimpleType());
            registrations.Add(() => new AnotherType());
            resolver.Register(typeof(ISomeType), registrations);

            // act
            var result = resolver.GetServices(typeof(INotUsed));

            Assert.False(result.Any());
        }
        public void GetServices_WithNoRegistrations_ReturnsEmptyList() {
            // arrange
            var builder = new ContainerBuilder();
            var container = builder.Build();
            var resolver = new AutofacDependencyResolver(container);
            
            // act 
            var result = resolver.GetServices(typeof(ISomeType));

            Assert.False(result.Any());
        }