public void CanValidateAfterConvertingToWebServiceRegistry() { ServiceRegistry registry = CoreServiceRegistryContainer.Create(); WebServiceRegistry webServiceRegistry = WebServiceRegistry.FromRegistry(registry); webServiceRegistry.Validate(); }
public void HasProxyAssemblyGeneratorServiceClassName() { ServiceRegistry registry = CoreServiceRegistryContainer.Create(); WebServiceRegistry webServiceRegistry = WebServiceRegistry.FromRegistry(registry); Expect.IsTrue(webServiceRegistry.ClassNames.Contains("ProxyAssemblyGeneratorService")); }
public void CanGetProxyAssemblyGeneratorServiceFromWebServiceRegistry() { ServiceRegistry registry = CoreServiceRegistryContainer.Create(); WebServiceRegistry webServiceRegistry = WebServiceRegistry.FromRegistry(registry); ProxyAssemblyGeneratorService proxyGenerator = webServiceRegistry.Get <ProxyAssemblyGeneratorService>(); Expect.IsNotNull(proxyGenerator); }
public void WebServiceRegistryFromServiceRegistryOnlyGetsProxies() { ServiceRegistry registry = ServiceRegistry.Create() .For <ProxyClass>().Use <ProxyClass>() .For <NotProxyClass>().Use <NotProxyClass>(); WebServiceRegistry webServiceRegistry = WebServiceRegistry.FromRegistry(registry); Expect.AreEqual(1, webServiceRegistry.ClassNames.Length); }