Ejemplo n.º 1
0
        public void WhenTheMappingIsGenerated()
        {
            var webService = scenarioContext.Get <Runtime.ServiceModel.Data.WebService>("WebService");
            IOutputDescription outputDescription = webService.GetOutputDescription();

            webService.OutputDescription = outputDescription;
            outputDescription.ToRecordsetList(webService.Recordsets);
        }
Ejemplo n.º 2
0
        public void WhenTheMappingIsGenerated()
        {
            var webService = ScenarioContext.Current.Get <ServiceModel.Data.WebService>("WebService");
            IOutputDescription outputDescription = webService.GetOutputDescription();

            webService.OutputDescription = outputDescription;
            outputDescription.ToRecordsetList(webService.Recordsets);
            webService.OutputSpecification = webService.GetOutputString(webService.Recordsets);
        }
Ejemplo n.º 3
0
        public void GivenIHaveTheGetCitiesWebservice()
        {
            var webSourceXml = XmlResource.Fetch("Google_Address_Lookup");
            var webSource    = new WebSource(webSourceXml);
            var webService   = new Runtime.ServiceModel.Data.WebService {
                Source = webSource, RequestUrl = webSource.DefaultQuery
            };
            ErrorResultTO errors;

            WebServices.ExecuteRequest(webService, false, out errors);
            IOutputDescription outputDescription = webService.GetOutputDescription();

            webService.OutputDescription = outputDescription;
            outputDescription.ToRecordsetList(webService.Recordsets);
            webService.OutputSpecification = webService.GetOutputString(webService.Recordsets);

            ScenarioContext.Current.Add("WebService", webService);
        }
Ejemplo n.º 4
0
 public static RecordsetList ToRecordsetList(this IOutputDescription outputDescription, RecordsetList currentList) => outputDescription.ToRecordsetList(currentList, "");
Ejemplo n.º 5
0
 public static RecordsetList ToRecordsetList(this IOutputDescription outputDescription) => outputDescription.ToRecordsetList(null, "");