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