1 instantiation of Triangle
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 } });
19 references to Triangle
Microsoft.AspNetCore.OpenApi.Tests (19)
Shared\SharedTypes.Polymorphism.cs (1)
7
[JsonDerivedType(typeof(
Triangle
), typeDiscriminator: "triangle")]
Transformers\SchemaTransformerTests.cs (6)
481
builder.MapPost("/triangle", (
Triangle
todo) => { });
486
if (context.JsonTypeInfo.Type == typeof(
Triangle
))
556
if (context.JsonTypeInfo.Type == typeof(
Triangle
))
597
if (context.JsonTypeInfo.Type == typeof(
Triangle
))
638
if (context.JsonTypeInfo.Type == typeof(
Triangle
))
718
if (context.JsonTypeInfo.Type == typeof(
Triangle
))
Transformers\TypeBasedTransformerLifetimeTests.cs (12)
20
builder.MapPost("/triangle", (
Triangle
triangle) => { });
42
builder.MapPost("/triangle", (
Triangle
triangle) => { });
68
builder.MapPost("/triangle", (
Triangle
triangle) => { });
94
builder.MapPost("/triangle", (
Triangle
triangle) => { });
119
builder.MapPost("/triangle", (
Triangle
triangle) => { });
166
builder.MapPost("/triangle", (
Triangle
triangle) => { });
192
builder.MapPost("/triangle", (
Triangle
triangle) => { });
217
builder.MapPost("/triangle", (
Triangle
triangle) => { });
238
builder.MapPost("/triangle", (
Triangle
triangle) => { });
261
builder.MapPost("/triangle", (
Triangle
triangle) => { });
287
builder.MapPost("/triangle", (
Triangle
triangle) => { });
313
builder.MapPost("/triangle", (
Triangle
triangle) => { });