1 instantiation of Square
Microsoft.AspNetCore.OpenApi.Tests (1)
Transformers\SchemaTransformerTests.cs (1)
551
builder.MapGet("/list", () => new List<Shape> { new Triangle { Hypotenuse = 12, Color = "blue", Sides = 3 }, new
Square
{ Area = 24, Color = "red ", Sides = 4 } });
4 references to Square
Microsoft.AspNetCore.OpenApi.Tests (4)
Shared\SharedTypes.Polymorphism.cs (1)
8
[JsonDerivedType(typeof(
Square
), typeDiscriminator: "square")]
Transformers\SchemaTransformerTests.cs (3)
560
if (context.JsonTypeInfo.Type == typeof(
Square
))
601
if (context.JsonTypeInfo.Type == typeof(
Square
))
642
if (context.JsonTypeInfo.Type == typeof(
Square
))