1 instantiation of Triangle
Microsoft.AspNetCore.OpenApi.Tests (1)
Transformers\SchemaTransformerTests.cs (1)
551builder.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)
481builder.MapPost("/triangle", (Triangle todo) => { }); 486if (context.JsonTypeInfo.Type == typeof(Triangle)) 556if (context.JsonTypeInfo.Type == typeof(Triangle)) 597if (context.JsonTypeInfo.Type == typeof(Triangle)) 638if (context.JsonTypeInfo.Type == typeof(Triangle)) 718if (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) => { });