Ejemplo n.º 1
0
        public string GetText(ModelQuery query, string title = null)
        {
            if (title.IsNotEmpty())
            {
                _stringWriter.WriteLine(title);
            }

            _stringWriter.WriteLine("");

            var model = _graph;

            var serviceTypes = query.Query(model);

            writeContentsOfServiceTypes(serviceTypes);

            return(_stringWriter.ToString());
        }
Ejemplo n.º 2
0
        public string GetText(ModelQuery query, string title = null, WhatDoIHaveDisplay display = WhatDoIHaveDisplay.Summary)
        {
            using (var writer = new StringWriter())
            {
                if (title.IsNotEmpty())
                {
                    writer.WriteLine(title);
                }

                writer.WriteLine("");

                var model = _graph;

                var serviceTypes = query.Query(model);

                writeContentsOfServiceTypes(serviceTypes, writer, display);

                return(writer.ToString());
            }
        }