public void Locate_Test() { ServiceRegistryConfig registryConfig = BuildRegsitryConfig(); IServiceRegistry serviceRegistry = new ConfigBasedServiceRegistry(registryConfig); ServiceBrokerConfig config = BuildBrokerConfig(); IServiceBroker serviceBroker = new ServiceBroker(serviceRegistry, config); ITestService testService = serviceBroker.Locate<ITestService>(); Assert.IsNotNull(testService); }