49 references to Execute
dotnet-openapi (1)
Program.cs (1)
29var result = application.Execute(args);
Microsoft.DotNet.Open.Api.Tools.Tests (48)
OpenApiAddFileTests.cs (14)
20var run = app.Execute(Array.Empty<string>()); 32var run = app.Execute(new string[] { "add", "file", "randomfile.json" }); 44var run = app.Execute(new string[] { "add", "file", "--updateProject", csproj, "randomfile.json" }); 54var appExitCode = app.Execute(new string[] { "add" }); 65var run = app.Execute(new string[] { "add", "file", "--help" }); 78var run = app.Execute(new[] { "add", "file", project.NSwagJsonFile }); 82var secondRun = app.Execute(new[] { "add", "url", FakeOpenApiUrl }); 108var run = app.Execute(new[] { "add", "file", nswagJsonFile }); 114run = app.Execute(new[] { "add", "file", absolute }); 133var run = app.Execute(new[] { "add", "file", nswagJsonFile, "--code-generator", "NSwagTypeScript" }); 154var run = app.Execute(new[] { "add", "file", nswagJsonFile }); 174var run = app.Execute(new[] { "add", "file", "--updateProject", project.Project.Path, nswagJsonFIle }); 195var run = app.Execute(new[] { "add", "file", nswagJsonFile }); 200run = app.Execute(new[] { "add", "file", nswagJsonFile });
OpenApiAddProjectTests.cs (4)
39var run = app.Execute(new[] { "add", "project", project1.Path, project2.Path }); 66var run = app.Execute(new[] { "add", "project", csproj.Path }); 71run = app.Execute(new[] { "add", "project", Path.Combine(csproj.Path, "..", "refProj.csproj") }); 97var run = app.Execute(new[] { "add", "project", refProjFile });
OpenApiAddURLTests.cs (15)
22var run = app.Execute(new[] { "add", "url", FakeOpenApiUrl }); 55var run = app.Execute(new[] { "add", "url", url }); 88var run = app.Execute(new[] { "add", "url", url }); 121var run = app.Execute(new[] { "add", "url", url }); 153var run = app.Execute(new[] { "add", "url", FakeOpenApiUrl }); 186var run = app.Execute(new[] { "add", "url", FakeOpenApiUrl }); 212run = app.Execute(new[] { "add", "url", NoExtensionUrl }); 246var run = app.Execute(new[] { "add", "url", FakeOpenApiUrl, "--code-generator", "NSwagCSharp" }); 278var run = app.Execute(new[] { "add", "url", FakeOpenApiUrl, "--code-generator", "NSwagTypeScript" }); 310var run = app.Execute(new[] { "add", "url", FakeOpenApiUrl, "--output-file", Path.Combine("outputdir", "file.yaml") }); 344var appExitCode = app.Execute(new[] { "add", "url", FakeOpenApiUrl, "--output-file", outputFile }); 371appExitCode = app.Execute(new[] { "add", "url", DifferentUrl, "--output-file", outputFile }); 401var run = app.Execute(new[] { "add", "url", FakeOpenApiUrl }); 406run = app.Execute(new[] { "add", "url", "--output-file", "openapi.yaml", FakeOpenApiUrl }); 428var run = app.Execute(new[] { "add", "url", url });
OpenApiRefreshTests.cs (6)
20var run = app.Execute(new[] { "add", "url", FakeOpenApiUrl }); 33run = app.Execute(new[] { "refresh", FakeOpenApiUrl }); 50var run = app.Execute(new[] { "add", "url", FakeOpenApiUrl }); 63run = app.Execute(new[] { "refresh", FakeOpenApiUrl }); 79var run = app.Execute(new[] { "add", "url", FakeOpenApiUrl }); 89run = app.Execute(new[] { "refresh", FakeOpenApiUrl });
OpenApiRemoveTests.cs (9)
27var run = add.Execute(new[] { "add", "file", nswagJsonFile }); 42var removeRun = remove.Execute(new[] { "remove", nswagJsonFile }); 70var run = add.Execute(new[] { "add", "url", FakeOpenApiUrl }); 85var removeRun = remove.Execute(new[] { "remove", FakeOpenApiUrl }); 119var run = app.Execute(new[] { "add", "project", refProjFile }); 133run = app.Execute(new[] { "remove", refProjFile }); 162var run = add.Execute(new[] { "add", "file", nswagJsonFile }); 167run = add.Execute(new[] { "add", "file", swagFile2 }); 172var removeRun = remove.Execute(new[] { "remove", nswagJsonFile, swagFile2 });