29 references to FakeOpenApiUrl
Microsoft.DotNet.Open.Api.Tools.Tests (29)
OpenApiAddFileTests.cs (1)
81
var secondRun = app.Execute(new[] { "add", "url",
FakeOpenApiUrl
});
OpenApiAddURLTests.cs (19)
20
var run = app.Execute(new[] { "add", "url",
FakeOpenApiUrl
});
33
$@"<OpenApiReference Include=""{expectedJsonName}"" SourceUrl=""{
FakeOpenApiUrl
}"" />", content);
151
var run = app.Execute(new[] { "add", "url",
FakeOpenApiUrl
});
164
$@"<OpenApiReference Include=""{expectedJsonName}"" SourceUrl=""{
FakeOpenApiUrl
}"" />", content);
183
var run = app.Execute(new[] { "add", "url",
FakeOpenApiUrl
});
196
$@"<OpenApiReference Include=""{firstExpectedJsonName}"" SourceUrl=""{
FakeOpenApiUrl
}"" />", content);
222
$@"<OpenApiReference Include=""{firstExpectedJsonName}"" SourceUrl=""{
FakeOpenApiUrl
}"" />", content);
243
var run = app.Execute(new[] { "add", "url",
FakeOpenApiUrl
, "--code-generator", "NSwagCSharp" });
256
$@"<OpenApiReference Include=""{expectedJsonName}"" SourceUrl=""{
FakeOpenApiUrl
}"" CodeGenerator=""NSwagCSharp"" />", content);
275
var run = app.Execute(new[] { "add", "url",
FakeOpenApiUrl
, "--code-generator", "NSwagTypeScript" });
288
$@"<OpenApiReference Include=""{expectedJsonName}"" SourceUrl=""{
FakeOpenApiUrl
}"" CodeGenerator=""NSwagTypeScript"" />", content);
307
var run = app.Execute(new[] { "add", "url",
FakeOpenApiUrl
, "--output-file", Path.Combine("outputdir", "file.yaml") });
320
$@"<OpenApiReference Include=""{expectedJsonName}"" SourceUrl=""{
FakeOpenApiUrl
}"" />", content);
340
var appExitCode = app.Execute(new[] { "add", "url",
FakeOpenApiUrl
, "--output-file", outputFile });
353
$@"<OpenApiReference Include=""{expectedJsonName}"" SourceUrl=""{
FakeOpenApiUrl
}"" />", content);
378
$@"<OpenApiReference Include=""{expectedJsonName}"" SourceUrl=""{
FakeOpenApiUrl
}"" />", content);
397
var run = app.Execute(new[] { "add", "url",
FakeOpenApiUrl
});
402
run = app.Execute(new[] { "add", "url", "--output-file", "openapi.yaml",
FakeOpenApiUrl
});
413
var escapedApiRef = Regex.Escape($"SourceUrl=\"{
FakeOpenApiUrl
}\"");
OpenApiRefreshTests.cs (6)
20
var run = app.Execute(new[] { "add", "url",
FakeOpenApiUrl
});
33
run = app.Execute(new[] { "refresh",
FakeOpenApiUrl
});
50
var run = app.Execute(new[] { "add", "url",
FakeOpenApiUrl
});
63
run = app.Execute(new[] { "refresh",
FakeOpenApiUrl
});
79
var run = app.Execute(new[] { "add", "url",
FakeOpenApiUrl
});
89
run = app.Execute(new[] { "refresh",
FakeOpenApiUrl
});
OpenApiRemoveTests.cs (2)
70
var run = add.Execute(new[] { "add", "url",
FakeOpenApiUrl
});
85
var removeRun = remove.Execute(new[] { "remove",
FakeOpenApiUrl
});
OpenApiTestBase.cs (1)
99
{
FakeOpenApiUrl
, Tuple.Create(Content, extension)},