Пример #1
0
        // TODO: Need to expand this to include all options
        public static void WriteSample(TextWriter writer)
        {
            if (writer is null)
            {
                throw new ArgumentNullException(nameof(writer));
            }

            _logger.Debug("Starting sample generation...");

            var config = new Config();

            config.LabelAliases.Add(new LabelAlias
            {
                Header = "Documentation",
                Name   = "Documentation",
                Plural = "Documentation",
            });
            var configType = config.GetType();

            writer.Write("#");
            writer.NewLine = Environment.NewLine + "#";
            SetConfigurationSamples(config, configType, writer);

            _logger.Verbose("Writing sample");
            Write(config, writer);
        }