82 references to OpenApiOptions
Microsoft.AspNetCore.OpenApi.Microbenchmarks (2)
GenerationBenchmarks.cs (1)
24private readonly OpenApiOptions _options = new OpenApiOptions();
TransformersBenchmark.cs (1)
25private readonly OpenApiOptions _options = new();
Microsoft.AspNetCore.OpenApi.Tests (80)
Services\CreateSchemaReferenceIdTests.cs (5)
30var options = new OpenApiOptions { CreateSchemaReferenceId = createReferenceId }; 68var options = new OpenApiOptions { CreateSchemaReferenceId = (type) => type.Type.Name == "Todo" ? $"{type.Type.Name}Schema" : OpenApiOptions.CreateDefaultSchemaReferenceId(type) }; 117var options = new OpenApiOptions { CreateSchemaReferenceId = (type) => type.Type.Name == "Todo" ? null : OpenApiOptions.CreateDefaultSchemaReferenceId(type) }; 165var options = new OpenApiOptions 208var options = new OpenApiOptions
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Info.cs (1)
62openApiOptions.Setup(o => o.Get(It.IsAny<string>())).Returns(new OpenApiOptions());
Services\OpenApiDocumentServiceTestsBase.cs (2)
32=> await VerifyOpenApiDocument(builder, new OpenApiOptions(), verifyOpenApiDocument, cancellationToken); 86openApiOptions.Setup(o => o.Get(It.IsAny<string>())).Returns(new OpenApiOptions());
Transformers\DocumentTransformerTests.cs (10)
20var options = new OpenApiOptions(); 47var options = new OpenApiOptions(); 64var options = new OpenApiOptions(); 81var options = new OpenApiOptions(); 107var options = new OpenApiOptions(); 133var options = new OpenApiOptions(); 152var options = new OpenApiOptions(); 171var options = new OpenApiOptions(); 199var options = new OpenApiOptions(); 226var options = new OpenApiOptions();
Transformers\Implementations\OpenApiSchemaReferenceTransformerTests.cs (2)
276var options = new OpenApiOptions(); 461var options = new OpenApiOptions();
Transformers\OpenApiOptionsTests.cs (9)
13var options = new OpenApiOptions(); 35var options = new OpenApiOptions(); 53var options = new OpenApiOptions(); 70var options = new OpenApiOptions(); 92var options = new OpenApiOptions(); 110var options = new OpenApiOptions(); 127var options = new OpenApiOptions(); 149var options = new OpenApiOptions(); 167var options = new OpenApiOptions();
Transformers\OperationTransformerTests.cs (13)
20var options = new OpenApiOptions(); 54var options = new OpenApiOptions(); 147var options = new OpenApiOptions(); 186var options = new OpenApiOptions(); 219var options = new OpenApiOptions(); 248var options = new OpenApiOptions(); 278var options = new OpenApiOptions(); 328var options = new OpenApiOptions(); 347var options = new OpenApiOptions(); 378var options = new OpenApiOptions(); 409var options = new OpenApiOptions(); 436var options = new OpenApiOptions(); 464var options = new OpenApiOptions();
Transformers\SchemaTransformerTests.cs (25)
21var options = new OpenApiOptions(); 76var options = new OpenApiOptions(); 113var options = new OpenApiOptions(); 134var options = new OpenApiOptions(); 152var options = new OpenApiOptions(); 181var options = new OpenApiOptions(); 211var options = new OpenApiOptions(); 241var options = new OpenApiOptions(); 264var options = new OpenApiOptions(); 288var options = new OpenApiOptions(); 326var options = new OpenApiOptions(); 363var options = new OpenApiOptions(); 389var options = new OpenApiOptions(); 415var options = new OpenApiOptions(); 448var options = new OpenApiOptions(); 483var options = new OpenApiOptions(); 518var options = new OpenApiOptions(); 553var options = new OpenApiOptions(); 594var options = new OpenApiOptions(); 635var options = new OpenApiOptions(); 676var options = new OpenApiOptions(); 711var options = new OpenApiOptions(); 766var options = new OpenApiOptions(); 793var options = new OpenApiOptions(); 820var options = new OpenApiOptions();
Transformers\TypeBasedTransformerLifetimeTests.cs (13)
16var options = new OpenApiOptions(); 38var options = new OpenApiOptions(); 64var options = new OpenApiOptions(); 90var options = new OpenApiOptions(); 115var options = new OpenApiOptions(); 137var options = new OpenApiOptions(); 162var options = new OpenApiOptions(); 188var options = new OpenApiOptions(); 213var options = new OpenApiOptions(); 234var options = new OpenApiOptions(); 257var options = new OpenApiOptions(); 283var options = new OpenApiOptions(); 309var options = new OpenApiOptions();