@@ -141,7 +141,7 @@ public async Task ShowCommandGeneratesMermaidMarkdownFileWithMermaidDiagram()
141141 Output = new FileInfo ( "sample.md" )
142142 } ;
143143
144- await OpenApiService . ShowOpenApiDocument ( options , _logger , new CancellationToken ( ) ) ;
144+ await OpenApiService . ShowOpenApiDocument ( options , _logger ) ;
145145
146146 var output = await File . ReadAllTextAsync ( options . Output . FullName ) ;
147147 Assert . Contains ( "graph LR" , output , StringComparison . Ordinal ) ;
@@ -154,7 +154,7 @@ public async Task ShowCommandGeneratesMermaidHtmlFileWithMermaidDiagram()
154154 {
155155 OpenApi = Path . Combine ( "UtilityFiles" , "SampleOpenApi.yml" )
156156 } ;
157- var filePath = await OpenApiService . ShowOpenApiDocument ( options , _logger , new CancellationToken ( ) ) ;
157+ var filePath = await OpenApiService . ShowOpenApiDocument ( options , _logger ) ;
158158 Assert . True ( File . Exists ( filePath ) ) ;
159159 }
160160
@@ -169,7 +169,7 @@ public async Task ShowCommandGeneratesMermaidMarkdownFileFromCsdlWithMermaidDiag
169169 } ;
170170
171171 // create a dummy ILogger instance for testing
172- await OpenApiService . ShowOpenApiDocument ( options , _logger , new CancellationToken ( ) ) ;
172+ await OpenApiService . ShowOpenApiDocument ( options , _logger ) ;
173173
174174 var output = await File . ReadAllTextAsync ( options . Output . FullName ) ;
175175 Assert . Contains ( "graph LR" , output , StringComparison . Ordinal ) ;
@@ -179,29 +179,29 @@ public async Task ShowCommandGeneratesMermaidMarkdownFileFromCsdlWithMermaidDiag
179179 public async Task ThrowIfOpenApiUrlIsNotProvidedWhenValidating ( )
180180 {
181181 await Assert . ThrowsAsync < ArgumentNullException > ( async ( ) =>
182- await OpenApiService . ValidateOpenApiDocument ( "" , _logger , new CancellationToken ( ) ) ) ;
182+ await OpenApiService . ValidateOpenApiDocument ( "" , _logger ) ) ;
183183 }
184184
185185
186186 [ Fact ]
187187 public async Task ThrowIfURLIsNotResolvableWhenValidating ( )
188188 {
189189 await Assert . ThrowsAsync < InvalidOperationException > ( async ( ) =>
190- await OpenApiService . ValidateOpenApiDocument ( "https://example.org/itdoesnmatter" , _logger , new CancellationToken ( ) ) ) ;
190+ await OpenApiService . ValidateOpenApiDocument ( "https://example.org/itdoesnmatter" , _logger ) ) ;
191191 }
192192
193193 [ Fact ]
194194 public async Task ThrowIfFileDoesNotExistWhenValidating ( )
195195 {
196196 await Assert . ThrowsAsync < InvalidOperationException > ( async ( ) =>
197- await OpenApiService . ValidateOpenApiDocument ( "aFileThatBetterNotExist.fake" , _logger , new CancellationToken ( ) ) ) ;
197+ await OpenApiService . ValidateOpenApiDocument ( "aFileThatBetterNotExist.fake" , _logger ) ) ;
198198 }
199199
200200 [ Fact ]
201201 public async Task ValidateCommandProcessesOpenApi ( )
202202 {
203203 // create a dummy ILogger instance for testing
204- await OpenApiService . ValidateOpenApiDocument ( Path . Combine ( "UtilityFiles" , "SampleOpenApi.yml" ) , _logger , new CancellationToken ( ) ) ;
204+ await OpenApiService . ValidateOpenApiDocument ( Path . Combine ( "UtilityFiles" , "SampleOpenApi.yml" ) , _logger ) ;
205205
206206 Assert . True ( true ) ;
207207 }
@@ -220,7 +220,7 @@ public async Task TransformCommandConvertsOpenApi()
220220 InlineExternal = false ,
221221 } ;
222222 // create a dummy ILogger instance for testing
223- await OpenApiService . TransformOpenApiDocument ( options , _logger , new CancellationToken ( ) ) ;
223+ await OpenApiService . TransformOpenApiDocument ( options , _logger ) ;
224224
225225 var output = await File . ReadAllTextAsync ( "sample.json" ) ;
226226 Assert . NotEmpty ( output ) ;
@@ -239,7 +239,7 @@ public async Task TransformCommandConvertsOpenApiWithDefaultOutputName()
239239 InlineExternal = false ,
240240 } ;
241241 // create a dummy ILogger instance for testing
242- await OpenApiService . TransformOpenApiDocument ( options , _logger , new CancellationToken ( ) ) ;
242+ await OpenApiService . TransformOpenApiDocument ( options , _logger ) ;
243243
244244 var output = await File . ReadAllTextAsync ( "output.yml" ) ;
245245 Assert . NotEmpty ( output ) ;
@@ -257,7 +257,7 @@ public async Task TransformCommandConvertsCsdlWithDefaultOutputName()
257257 InlineExternal = false ,
258258 } ;
259259 // create a dummy ILogger instance for testing
260- await OpenApiService . TransformOpenApiDocument ( options , _logger , new CancellationToken ( ) ) ;
260+ await OpenApiService . TransformOpenApiDocument ( options , _logger ) ;
261261
262262 var output = await File . ReadAllTextAsync ( "output.yml" ) ;
263263 Assert . NotEmpty ( output ) ;
@@ -277,7 +277,7 @@ public async Task TransformCommandConvertsOpenApiWithDefaultOutputNameAndSwitchF
277277 InlineExternal = false ,
278278 } ;
279279 // create a dummy ILogger instance for testing
280- await OpenApiService . TransformOpenApiDocument ( options , _logger , new CancellationToken ( ) ) ;
280+ await OpenApiService . TransformOpenApiDocument ( options , _logger ) ;
281281
282282 var output = await File . ReadAllTextAsync ( "output.yml" ) ;
283283 Assert . NotEmpty ( output ) ;
@@ -294,7 +294,7 @@ public async Task ThrowTransformCommandIfOpenApiAndCsdlAreEmpty()
294294 InlineExternal = false ,
295295 } ;
296296 await Assert . ThrowsAsync < ArgumentException > ( async ( ) =>
297- await OpenApiService . TransformOpenApiDocument ( options , _logger , new CancellationToken ( ) ) ) ;
297+ await OpenApiService . TransformOpenApiDocument ( options , _logger ) ) ;
298298
299299 }
300300
@@ -314,7 +314,7 @@ public async Task TransformToPowerShellCompliantOpenApi()
314314 SettingsConfig = SettingsUtilities . GetConfiguration ( settingsPath )
315315 } ;
316316 // create a dummy ILogger instance for testing
317- await OpenApiService . TransformOpenApiDocument ( options , _logger , new CancellationToken ( ) ) ;
317+ await OpenApiService . TransformOpenApiDocument ( options , _logger ) ;
318318
319319 var output = await File . ReadAllTextAsync ( "output.yml" ) ;
320320 Assert . NotEmpty ( output ) ;
0 commit comments