@@ -38,9 +38,9 @@ public async Task ReturnConvertedCSDLFile()
38
38
}
39
39
40
40
[ Theory ]
41
- [ InlineData ( "Todos.Todo.UpdateTodo" , null , 1 ) ]
41
+ [ InlineData ( "Todos.Todo.UpdateTodo" , null , 1 ) ]
42
42
[ InlineData ( "Todos.Todo.ListTodo" , null , 1 ) ]
43
- [ InlineData ( null , "Todos.Todo" , 4 ) ]
43
+ [ InlineData ( null , "Todos.Todo" , 5 ) ]
44
44
public async Task ReturnFilteredOpenApiDocBasedOnOperationIdsAndInputCsdlDocument ( string operationIds , string tags , int expectedPathCount )
45
45
{
46
46
// Arrange
@@ -190,7 +190,7 @@ public async Task TransformCommandConvertsOpenApi()
190
190
{
191
191
var fileinfo = new FileInfo ( "sample.json" ) ;
192
192
// create a dummy ILogger instance for testing
193
- await OpenApiService . TransformOpenApiDocument ( "UtilityFiles\\ SampleOpenApi.yml" , null , null , fileinfo , true , null , null , false , null , false , false , null , null , null , new Logger < OpenApiService > ( new LoggerFactory ( ) ) , new CancellationToken ( ) ) ;
193
+ await OpenApiService . TransformOpenApiDocument ( "UtilityFiles\\ SampleOpenApi.yml" , null , null , fileinfo , true , null , null , null , false , null , false , false , null , null , null , new Logger < OpenApiService > ( new LoggerFactory ( ) ) , new CancellationToken ( ) ) ;
194
194
195
195
var output = File . ReadAllText ( "sample.json" ) ;
196
196
Assert . NotEmpty ( output ) ;
@@ -201,7 +201,7 @@ public async Task TransformCommandConvertsOpenApi()
201
201
public async Task TransformCommandConvertsOpenApiWithDefaultOutputname ( )
202
202
{
203
203
// create a dummy ILogger instance for testing
204
- await OpenApiService . TransformOpenApiDocument ( "UtilityFiles\\ SampleOpenApi.yml" , null , null , null , true , null , null , false , null , false , false , null , null , null , new Logger < OpenApiService > ( new LoggerFactory ( ) ) , new CancellationToken ( ) ) ;
204
+ await OpenApiService . TransformOpenApiDocument ( "UtilityFiles\\ SampleOpenApi.yml" , null , null , null , true , null , null , null , false , null , false , false , null , null , null , new Logger < OpenApiService > ( new LoggerFactory ( ) ) , new CancellationToken ( ) ) ;
205
205
206
206
var output = File . ReadAllText ( "output.yml" ) ;
207
207
Assert . NotEmpty ( output ) ;
@@ -211,7 +211,7 @@ public async Task TransformCommandConvertsOpenApiWithDefaultOutputname()
211
211
public async Task TransformCommandConvertsCsdlWithDefaultOutputname ( )
212
212
{
213
213
// create a dummy ILogger instance for testing
214
- await OpenApiService . TransformOpenApiDocument ( null , "UtilityFiles\\ Todo.xml" , null , null , true , null , null , false , null , false , false , null , null , null , new Logger < OpenApiService > ( new LoggerFactory ( ) ) , new CancellationToken ( ) ) ;
214
+ await OpenApiService . TransformOpenApiDocument ( null , "UtilityFiles\\ Todo.xml" , null , null , true , null , null , null , false , null , false , false , null , null , null , new Logger < OpenApiService > ( new LoggerFactory ( ) ) , new CancellationToken ( ) ) ;
215
215
216
216
var output = File . ReadAllText ( "output.yml" ) ;
217
217
Assert . NotEmpty ( output ) ;
@@ -221,7 +221,7 @@ public async Task TransformCommandConvertsCsdlWithDefaultOutputname()
221
221
public async Task TransformCommandConvertsOpenApiWithDefaultOutputnameAndSwitchFormat ( )
222
222
{
223
223
// create a dummy ILogger instance for testing
224
- await OpenApiService . TransformOpenApiDocument ( "UtilityFiles\\ SampleOpenApi.yml" , null , null , null , true , "3.0" , OpenApiFormat . Yaml , false , null , false , false , null , null , null , new Logger < OpenApiService > ( new LoggerFactory ( ) ) , new CancellationToken ( ) ) ;
224
+ await OpenApiService . TransformOpenApiDocument ( "UtilityFiles\\ SampleOpenApi.yml" , null , null , null , true , "3.0" , null , OpenApiFormat . Yaml , false , null , false , false , null , null , null , new Logger < OpenApiService > ( new LoggerFactory ( ) ) , new CancellationToken ( ) ) ;
225
225
226
226
var output = File . ReadAllText ( "output.yml" ) ;
227
227
Assert . NotEmpty ( output ) ;
@@ -231,7 +231,7 @@ public async Task TransformCommandConvertsOpenApiWithDefaultOutputnameAndSwitchF
231
231
public async Task ThrowTransformCommandIfOpenApiAndCsdlAreEmpty ( )
232
232
{
233
233
await Assert . ThrowsAsync < ArgumentException > ( async ( ) =>
234
- await OpenApiService . TransformOpenApiDocument ( null , null , null , null , true , null , null , false , null , false , false , null , null , null , new Logger < OpenApiService > ( new LoggerFactory ( ) ) , new CancellationToken ( ) ) ) ;
234
+ await OpenApiService . TransformOpenApiDocument ( null , null , null , null , true , null , null , null , false , null , false , false , null , null , null , new Logger < OpenApiService > ( new LoggerFactory ( ) ) , new CancellationToken ( ) ) ) ;
235
235
236
236
}
237
237
0 commit comments