@@ -142,7 +142,7 @@ public async Task ShowCommandGeneratesMermaidMarkdownFileWithMermaidDiagram()
142142 Output = new FileInfo ( "sample.md" )
143143 } ;
144144
145- await OpenApiService . ShowOpenApiDocument ( options , _logger , new CancellationToken ( ) ) ;
145+ await OpenApiService . ShowOpenApiDocument ( options , _logger ) ;
146146
147147 var output = await File . ReadAllTextAsync ( options . Output . FullName ) ;
148148 Assert . Contains ( "graph LR" , output , StringComparison . Ordinal ) ;
@@ -155,7 +155,7 @@ public async Task ShowCommandGeneratesMermaidHtmlFileWithMermaidDiagram()
155155 {
156156 OpenApi = Path . Combine ( "UtilityFiles" , "SampleOpenApi.yml" )
157157 } ;
158- var filePath = await OpenApiService . ShowOpenApiDocument ( options , _logger , new CancellationToken ( ) ) ;
158+ var filePath = await OpenApiService . ShowOpenApiDocument ( options , _logger ) ;
159159 Assert . True ( File . Exists ( filePath ) ) ;
160160 }
161161
@@ -170,7 +170,7 @@ public async Task ShowCommandGeneratesMermaidMarkdownFileFromCsdlWithMermaidDiag
170170 } ;
171171
172172 // create a dummy ILogger instance for testing
173- await OpenApiService . ShowOpenApiDocument ( options , _logger , new CancellationToken ( ) ) ;
173+ await OpenApiService . ShowOpenApiDocument ( options , _logger ) ;
174174
175175 var output = await File . ReadAllTextAsync ( options . Output . FullName ) ;
176176 Assert . Contains ( "graph LR" , output , StringComparison . Ordinal ) ;
@@ -180,29 +180,29 @@ public async Task ShowCommandGeneratesMermaidMarkdownFileFromCsdlWithMermaidDiag
180180 public async Task ThrowIfOpenApiUrlIsNotProvidedWhenValidating ( )
181181 {
182182 await Assert . ThrowsAsync < ArgumentNullException > ( async ( ) =>
183- await OpenApiService . ValidateOpenApiDocument ( "" , _logger , new CancellationToken ( ) ) ) ;
183+ await OpenApiService . ValidateOpenApiDocument ( "" , _logger ) ) ;
184184 }
185185
186186
187187 [ Fact ]
188188 public async Task ThrowIfURLIsNotResolvableWhenValidating ( )
189189 {
190190 await Assert . ThrowsAsync < InvalidOperationException > ( async ( ) =>
191- await OpenApiService . ValidateOpenApiDocument ( "https://example.org/itdoesnmatter" , _logger , new CancellationToken ( ) ) ) ;
191+ await OpenApiService . ValidateOpenApiDocument ( "https://example.org/itdoesnmatter" , _logger ) ) ;
192192 }
193193
194194 [ Fact ]
195195 public async Task ThrowIfFileDoesNotExistWhenValidating ( )
196196 {
197197 await Assert . ThrowsAsync < InvalidOperationException > ( async ( ) =>
198- await OpenApiService . ValidateOpenApiDocument ( "aFileThatBetterNotExist.fake" , _logger , new CancellationToken ( ) ) ) ;
198+ await OpenApiService . ValidateOpenApiDocument ( "aFileThatBetterNotExist.fake" , _logger ) ) ;
199199 }
200200
201201 [ Fact ]
202202 public async Task ValidateCommandProcessesOpenApi ( )
203203 {
204204 // create a dummy ILogger instance for testing
205- await OpenApiService . ValidateOpenApiDocument ( Path . Combine ( "UtilityFiles" , "SampleOpenApi.yml" ) , _logger , new CancellationToken ( ) ) ;
205+ await OpenApiService . ValidateOpenApiDocument ( Path . Combine ( "UtilityFiles" , "SampleOpenApi.yml" ) , _logger ) ;
206206
207207 Assert . True ( true ) ;
208208 }
@@ -221,7 +221,7 @@ public async Task TransformCommandConvertsOpenApi()
221221 InlineExternal = false ,
222222 } ;
223223 // create a dummy ILogger instance for testing
224- await OpenApiService . TransformOpenApiDocument ( options , _logger , new CancellationToken ( ) ) ;
224+ await OpenApiService . TransformOpenApiDocument ( options , _logger ) ;
225225
226226 var output = await File . ReadAllTextAsync ( "sample.json" ) ;
227227 Assert . NotEmpty ( output ) ;
@@ -240,7 +240,7 @@ public async Task TransformCommandConvertsOpenApiWithDefaultOutputName()
240240 InlineExternal = false ,
241241 } ;
242242 // create a dummy ILogger instance for testing
243- await OpenApiService . TransformOpenApiDocument ( options , _logger , new CancellationToken ( ) ) ;
243+ await OpenApiService . TransformOpenApiDocument ( options , _logger ) ;
244244
245245 var output = await File . ReadAllTextAsync ( "output.yml" ) ;
246246 Assert . NotEmpty ( output ) ;
@@ -258,7 +258,7 @@ public async Task TransformCommandConvertsCsdlWithDefaultOutputName()
258258 InlineExternal = false ,
259259 } ;
260260 // create a dummy ILogger instance for testing
261- await OpenApiService . TransformOpenApiDocument ( options , _logger , new CancellationToken ( ) ) ;
261+ await OpenApiService . TransformOpenApiDocument ( options , _logger ) ;
262262
263263 var output = await File . ReadAllTextAsync ( "output.yml" ) ;
264264 Assert . NotEmpty ( output ) ;
@@ -278,7 +278,7 @@ public async Task TransformCommandConvertsOpenApiWithDefaultOutputNameAndSwitchF
278278 InlineExternal = false ,
279279 } ;
280280 // create a dummy ILogger instance for testing
281- await OpenApiService . TransformOpenApiDocument ( options , _logger , new CancellationToken ( ) ) ;
281+ await OpenApiService . TransformOpenApiDocument ( options , _logger ) ;
282282
283283 var output = await File . ReadAllTextAsync ( "output.yml" ) ;
284284 Assert . NotEmpty ( output ) ;
@@ -295,7 +295,7 @@ public async Task ThrowTransformCommandIfOpenApiAndCsdlAreEmpty()
295295 InlineExternal = false ,
296296 } ;
297297 await Assert . ThrowsAsync < ArgumentException > ( async ( ) =>
298- await OpenApiService . TransformOpenApiDocument ( options , _logger , new CancellationToken ( ) ) ) ;
298+ await OpenApiService . TransformOpenApiDocument ( options , _logger ) ) ;
299299
300300 }
301301
@@ -315,7 +315,7 @@ public async Task TransformToPowerShellCompliantOpenApi()
315315 SettingsConfig = SettingsUtilities . GetConfiguration ( settingsPath )
316316 } ;
317317 // create a dummy ILogger instance for testing
318- await OpenApiService . TransformOpenApiDocument ( options , _logger , new CancellationToken ( ) ) ;
318+ await OpenApiService . TransformOpenApiDocument ( options , _logger ) ;
319319
320320 var output = await File . ReadAllTextAsync ( "output.yml" ) ;
321321 Assert . NotEmpty ( output ) ;
0 commit comments