2 types derived from Shape
Microsoft.AspNetCore.OpenApi.Tests (2)
Shared\SharedTypes.Polymorphism.cs (2)
15internal class Triangle : Shape 19internal class Square : Shape
19 references to Shape
Microsoft.AspNetCore.OpenApi.Tests (19)
Services\CreateSchemaReferenceIdTests.cs (1)
19builder.MapPost("/api", (Shape shape) => { });
Services\OpenApiSchemaService\OpenApiSchemaService.PolymorphicSchemas.cs (1)
17builder.MapPost("/api", (Shape shape) => { });
Transformers\SchemaTransformerTests.cs (4)
480builder.MapPost("/shape", (Shape todo) => { }); 551builder.MapGet("/list", () => new List<Shape> { new Triangle { Hypotenuse = 12, Color = "blue", Sides = 3 }, new Square { Area = 24, Color = "red ", Sides = 4 } }); 709builder.MapPost("/shape", (Shape shape) => { }); 843public Shape SomeShape { get; }
Transformers\TypeBasedTransformerLifetimeTests.cs (13)
19builder.MapPost("/shape", (Shape shape) => { }); 41builder.MapPost("/shape", (Shape shape) => { }); 67builder.MapPost("/shape", (Shape shape) => { }); 93builder.MapPost("/shape", (Shape shape) => { }); 118builder.MapPost("/shape", (Shape shape) => { }); 140builder.MapPost("/shape", (Shape shape) => { }); 165builder.MapPost("/shape", (Shape shape) => { }); 191builder.MapPost("/shape", (Shape shape) => { }); 216builder.MapPost("/shape", (Shape shape) => { }); 237builder.MapPost("/shape", (Shape shape) => { }); 260builder.MapPost("/shape", (Shape shape) => { }); 286builder.MapPost("/shape", (Shape shape) => { }); 312builder.MapPost("/shape", (Shape shape) => { });