Ejemplo n.º 1
0
        public static AstoriaCustomServiceHost GetCustomHost(Workspace workspace)
        {
            if (workspace.Database == null && (workspace.DataLayerProviderKind == DataLayerProviderKind.Edm || workspace.DataLayerProviderKind == DataLayerProviderKind.LinqToSql))
                workspace.Database = new TestExecutionLayer.AstoriaDatabase(workspace.Name);

            AstoriaCustomServiceHost host = new AstoriaCustomServiceHost(workspace, workspace.WebServiceName, workspace.Database);
            workspace.DataService = host;

            host.CreateWebService(false);

            return host;
        }
Ejemplo n.º 2
0
        public static AstoriaCustomServiceHost GetCustomHost(Workspace workspace)
        {
            if (workspace.Database == null && (workspace.DataLayerProviderKind == DataLayerProviderKind.Edm || workspace.DataLayerProviderKind == DataLayerProviderKind.LinqToSql))
            {
                workspace.Database = new TestExecutionLayer.AstoriaDatabase(workspace.Name);
            }

            AstoriaCustomServiceHost host = new AstoriaCustomServiceHost(workspace, workspace.WebServiceName, workspace.Database);

            workspace.DataService = host;

            host.CreateWebService(false);

            return(host);
        }