Skip to content

Commit e1e38c8

Browse files
authored
better csharp tests (#7727)
1 parent 8afb067 commit e1e38c8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

modules/openapi-generator/src/main/resources/csharp-netcore/api_test.mustache

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ using Xunit;
1111
using {{packageName}}.Client;
1212
using {{packageName}}.{{apiPackage}};
1313
{{#hasImport}}
14-
using {{packageName}}.{{modelPackage}};
14+
// uncomment below to import models
15+
//using {{packageName}}.{{modelPackage}};
1516
{{/hasImport}}
1617

17-
namespace {{packageName}}.Test
18+
namespace {{packageName}}.Test.Api
1819
{
1920
/// <summary>
2021
/// Class for testing {{classname}}

modules/openapi-generator/src/main/resources/csharp-netcore/model_test.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ using Newtonsoft.Json;
1414

1515
{{#models}}
1616
{{#model}}
17-
namespace {{packageName}}.Test
17+
namespace {{packageName}}.Test.Model
1818
{
1919
/// <summary>
2020
/// Class for testing {{classname}}

0 commit comments

Comments
 (0)