2 types derived from Shape
Microsoft.AspNetCore.OpenApi.Tests (2)
Shared\SharedTypes.Polymorphism.cs (2)
15internal class Triangle : Shape 19internal class Square : Shape
21 references to Shape
Microsoft.AspNetCore.OpenApi.Tests (21)
Services\CreateSchemaReferenceIdTests.cs (1)
19builder.MapPost("/api", (Shape shape) => { });
Services\OpenApiSchemaService\OpenApiSchemaService.PolymorphicSchemas.cs (1)
16builder.MapPost("/api", (Shape shape) => { });
Transformers\CustomSchemaTransformerTests.cs (2)
144builder.MapPost("/shape", (Shape shape) => new Triangle { Hypotenuse = 25 }); 151if (context.JsonTypeInfo.Type == typeof(Shape))
Transformers\SchemaTransformerTests.cs (4)
491builder.MapPost("/shape", (Shape todo) => { }); 563builder.MapGet("/list", () => new List<Shape> { new Triangle { Hypotenuse = 12, Color = "blue", Sides = 3 }, new Square { Area = 24, Color = "red ", Sides = 4 } }); 724builder.MapPost("/shape", (Shape shape) => { }); 948public Shape SomeShape { get; }
Transformers\TypeBasedTransformerLifetimeTests.cs (13)
17builder.MapPost("/shape", (Shape shape) => { }); 39builder.MapPost("/shape", (Shape shape) => { }); 65builder.MapPost("/shape", (Shape shape) => { }); 91builder.MapPost("/shape", (Shape shape) => { }); 116builder.MapPost("/shape", (Shape shape) => { }); 138builder.MapPost("/shape", (Shape shape) => { }); 163builder.MapPost("/shape", (Shape shape) => { }); 189builder.MapPost("/shape", (Shape shape) => { }); 214builder.MapPost("/shape", (Shape shape) => { }); 235builder.MapPost("/shape", (Shape shape) => { }); 258builder.MapPost("/shape", (Shape shape) => { }); 284builder.MapPost("/shape", (Shape shape) => { }); 310builder.MapPost("/shape", (Shape shape) => { });