public void GetServices_Non_Generic_Usage_Should_Return_List_Of_Services()
        {
            var moduleInfoProvider = new ModuleInfoProvider(GetContextDescriptors(), GetServiceDescriptors());

            var serviceTypes = moduleInfoProvider.GetServices<StubModule2>();

            var serviceTypeList = serviceTypes.ToList();
            Assert.Equal(2, serviceTypeList.Count);
            Assert.Equal(typeof(StubModuleService2), serviceTypeList[0]);
            Assert.Equal(typeof(StubModuleService3), serviceTypeList[1]);
        }
 public void GetServices_Should_Return_Empty_List_And_Not_Throw_Exception_If_Key_Not_Found()
 {
     var moduleInfoProvider = new ModuleInfoProvider(GetContextDescriptors(), GetServiceDescriptors());
     var serviceTypes = moduleInfoProvider.GetServices(typeof (string));
     Assert.NotNull(serviceTypes);
     Assert.Empty(serviceTypes);
 }