This commit is contained in:
Chris Cheetham 2021-07-02 13:15:55 -04:00
Родитель 024efa3600
Коммит ed66472344
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -86,12 +86,12 @@ namespace Steeltoe.InitializrApi.Controllers
help.Add("The URI templates take a set of parameters to customize the result of a request.");
var table = new List<List<string>>
{
new () { "Parameter", "Description", "Default value" },
new () { "Parameter", "Description", "Default Value" },
new () { "name", "project name", uiConfig.Name.Default },
new () { "namespace", "namespace", uiConfig.Namespace.Default },
new () { "description", "project description", uiConfig.Description.Default },
new () { "steeltoeVersion", "Steeltoe version", uiConfig.SteeltoeVersion.Default },
new () { "dotNetFramework", "target .NET framework", uiConfig.DotNetFramework.Default },
new () { "dotNetFramework", ".NET framework", uiConfig.DotNetFramework.Default },
new () { "language", "programming language", uiConfig.Language.Default },
new () { "packaging", "project packaging", uiConfig.Packaging.Default },
};

Просмотреть файл

@ -110,12 +110,12 @@ namespace Steeltoe.InitializrApi.Test.Unit.Controllers
help.Should().MatchRegex("!!! failed to load logo:");
help.Should().MatchRegex(":: Steeltoe Initializr :: https://start.steeltoe.io");
help.Should().MatchRegex("Examples:");
help.Should().MatchRegex(@"\|\s+Parameter\s+\|\s+Description\s+\|\s+Default value\s+\|");
help.Should().MatchRegex(@"\|\s+Parameter\s+\|\s+Description\s+\|\s+Default Value\s+\|");
help.Should().MatchRegex(@"\|\s+name\s+\|\s+project name\s+\|\s+MyProject\s+\|");
help.Should().MatchRegex(@"\|\s+namespace\s+\|\s+namespace\s+\|\s+MyNamespace\s+\|");
help.Should().MatchRegex(@"\|\s+description\s+\|\s+project description\s+\|\s+my description\s+\|");
help.Should().MatchRegex(@"\|\s+steeltoeVersion\s+\|\s+Steeltoe version\s+\|\s+1.2.3\s+\|");
help.Should().MatchRegex(@"\|\s+dotNetFramework\s+\|\s+target .NET framework\s+\|\s+1.2\s+\|");
help.Should().MatchRegex(@"\|\s+dotNetFramework\s+\|\s+.NET framework\s+\|\s+1.2\s+\|");
help.Should().MatchRegex(@"\|\s+language\s+\|\s+programming language\s+\|\s+mylang\s+\|");
help.Should().MatchRegex(@"\|\s+packaging\s+\|\s+project packaging\s+\|\s+mypkg\s+\|");
help.Should().MatchRegex(@"\|\s+Id\s+\|\s+Description\s+\|\s+Steeltoe Version\s+\|\s+.NET Framework\s+\|");