Ejemplo n.º 1
0
        private void writeContentsOfPluginTypes(IEnumerable <IPluginTypeConfiguration> pluginTypes)
        {
            _writer    = new TextReportWriter(5);
            _instances = new List <Instance>();

            _writer.AddDivider('=');
            _writer.AddText("PluginType", "Namespace", "Lifecycle", "Description", "Name");

            pluginTypes.OrderBy(x => x.PluginType.Name).Each(writePluginType);

            _writer.AddDivider('=');

            _writer.Write(_stringWriter);
        }
        private void writeContentsOfPluginTypes(StringWriter stringWriter)
        {
            _writer = new TextReportWriter(3);
            _instances = new List<InstanceRef>();

            _writer.AddDivider('=');
            _writer.AddText("PluginType", "Name", "Description");

            foreach (IPluginTypeConfiguration pluginType in _graph.GetPluginTypes(null))
            {
                writePluginType(pluginType);
            }

            _writer.AddDivider('=');

            _writer.Write(stringWriter);
        }
Ejemplo n.º 3
0
        private void writeContentsOfPluginTypes(StringWriter stringWriter)
        {
            _writer    = new TextReportWriter(3);
            _instances = new List <InstanceRef>();

            _writer.AddDivider('=');
            _writer.AddText("PluginType", "Name", "Description");

            foreach (IPluginTypeConfiguration pluginType in _graph.GetPluginTypes(null))
            {
                writePluginType(pluginType);
            }

            _writer.AddDivider('=');

            _writer.Write(stringWriter);
        }
        public void TryWithTwoColumnsAndSomeDividers()
        {
            var writer = new TextReportWriter(2);
            writer.AddDivider('=');
            writer.AddText("Name", "City");
            writer.AddDivider('=');
            writer.AddText("Jeremy", "Austin");
            writer.AddText("Jessica", "Little Rock");
            writer.AddText("Natalie", "Bentonville");
            writer.AddDivider('-');
            writer.AddText("Monte", "Joplin");
            writer.AddText("aaaaaaaaaaaaaaaaaaaaaaaaaa", "Joplin");
            writer.AddText("aaaaaaaaaaa", "Joplin adsf asdf asdf asdf");
            writer.AddDivider('=');

            writer.DumpToConsole();
        }
Ejemplo n.º 5
0
        private void writeContentsOfPluginTypes(IEnumerable<IPluginTypeConfiguration> pluginTypes)
        {
            _writer = new TextReportWriter(5);
            _instances = new List<Instance>();

            _writer.AddDivider('=');
            _writer.AddText("PluginType", "Namespace", "Lifecycle", "Description", "Name");

            pluginTypes.OrderBy(x => x.PluginType.Name).Each(writePluginType);

            _writer.AddDivider('=');

            _writer.Write(_stringWriter);
        }