GetOutputDescription() public method

public GetOutputDescription ( ) : IOutputDescription
return IOutputDescription
        static void VerifyScrub(string requestResponse, IList<IPath> expectedPaths)
        {
            var webService = new WebService { RequestResponse = requestResponse };
            var outputDescription = webService.GetOutputDescription();

            Assert.AreEqual(1, outputDescription.DataSourceShapes.Count);

            foreach(var shape in outputDescription.DataSourceShapes)
            {
                Assert.IsNotNull(shape);
                Assert.AreEqual(expectedPaths.Count, shape.Paths.Count);

                foreach(var actualPath in shape.Paths)
                {
                    var expectedPath = expectedPaths.FirstOrDefault(p => p.ActualPath == actualPath.ActualPath);
                    Assert.IsNotNull(expectedPath);

                    Assert.AreEqual(expectedPath.DisplayPath, actualPath.DisplayPath);
                    Assert.AreEqual(expectedPath.OutputExpression, actualPath.OutputExpression);
                    Assert.IsTrue(actualPath.SampleData.StartsWith(expectedPath.SampleData));
                }
            }
        }
        public virtual RecordsetList FetchRecordset(WebService webService, bool addFields)
        {
            if(webService == null)
            {
                throw new ArgumentNullException("webService");
            }

            var outputDescription = webService.GetOutputDescription();
            return outputDescription.ToRecordsetList(webService.Recordsets);
        }