1 instantiation of Triangle
Microsoft.AspNetCore.OpenApi.Tests (1)
Transformers\SchemaTransformerTests.cs (1)
560builder.MapGet("/list", () => new List<Shape> { new Triangle { Hypotenuse = 12, Color = "blue", Sides = 3 }, new Square { Area = 24, Color = "red ", Sides = 4 } });
19 references to Triangle
Microsoft.AspNetCore.OpenApi.Tests (19)
Shared\SharedTypes.Polymorphism.cs (1)
7[JsonDerivedType(typeof(Triangle), typeDiscriminator: "triangle")]
Transformers\SchemaTransformerTests.cs (6)
490builder.MapPost("/triangle", (Triangle todo) => { }); 495if (context.JsonTypeInfo.Type == typeof(Triangle)) 565if (context.JsonTypeInfo.Type == typeof(Triangle)) 606if (context.JsonTypeInfo.Type == typeof(Triangle)) 647if (context.JsonTypeInfo.Type == typeof(Triangle)) 727if (context.JsonTypeInfo.Type == typeof(Triangle))
Transformers\TypeBasedTransformerLifetimeTests.cs (12)
20builder.MapPost("/triangle", (Triangle triangle) => { }); 42builder.MapPost("/triangle", (Triangle triangle) => { }); 68builder.MapPost("/triangle", (Triangle triangle) => { }); 94builder.MapPost("/triangle", (Triangle triangle) => { }); 119builder.MapPost("/triangle", (Triangle triangle) => { }); 166builder.MapPost("/triangle", (Triangle triangle) => { }); 192builder.MapPost("/triangle", (Triangle triangle) => { }); 217builder.MapPost("/triangle", (Triangle triangle) => { }); 238builder.MapPost("/triangle", (Triangle triangle) => { }); 261builder.MapPost("/triangle", (Triangle triangle) => { }); 287builder.MapPost("/triangle", (Triangle triangle) => { }); 313builder.MapPost("/triangle", (Triangle triangle) => { });