48 references to MetadataSource
Microsoft.AspNetCore.Http.Extensions.Tests (48)
RequestDelegateFactoryTests.cs (27)
2572
m => Assert.True(m is CustomEndpointMetadata { Source:
MetadataSource
.Parameter }));
2613
Assert.Contains(result.EndpointMetadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.Parameter });
2626
Assert.Contains(result.EndpointMetadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.ReturnType });
2639
Assert.Contains(result.EndpointMetadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.ReturnType });
2652
Assert.Contains(result.EndpointMetadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.ReturnType });
2665
Assert.Contains(result.EndpointMetadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.ReturnType });
2677
new CustomEndpointMetadata { Source =
MetadataSource
.Caller }
2685
Assert.Contains(result.EndpointMetadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.Caller });
2699
new CustomEndpointMetadata { Source =
MetadataSource
.Caller }
2707
Assert.Contains(result.EndpointMetadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.Caller });
2722
new CustomEndpointMetadata { Source =
MetadataSource
.Caller }
2730
Assert.Contains(result.EndpointMetadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.Caller });
2745
new CustomEndpointMetadata { Source =
MetadataSource
.Caller }
2753
Assert.Contains(result.EndpointMetadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.Caller });
2768
new CustomEndpointMetadata { Source =
MetadataSource
.Caller }
2776
Assert.Contains(result.EndpointMetadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.Caller });
2789
new CustomEndpointMetadata { Source =
MetadataSource
.Caller }
2797
Assert.Contains(result.EndpointMetadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.Caller });
2798
Assert.Contains(result.EndpointMetadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.Parameter });
2810
new CustomEndpointMetadata { Source =
MetadataSource
.Caller }
2822
m => Assert.True(m is CustomEndpointMetadata { Source:
MetadataSource
.Caller }),
2832
m => Assert.True(m is CustomEndpointMetadata { Source:
MetadataSource
.Parameter }),
3330
builder.Metadata.Add(new CustomEndpointMetadata { Source =
MetadataSource
.ReturnType });
3431
builder.Metadata.Add(new CustomEndpointMetadata { Source =
MetadataSource
.Property });
3456
builder.Metadata.Add(new CustomEndpointMetadata { Source =
MetadataSource
.Parameter });
3479
builder.Metadata.Add(new CustomEndpointMetadata { Source =
MetadataSource
.Parameter });
3510
public
MetadataSource
Source { get; init; }
RequestDelegateGenerator\RequestDelegateCreationTests.Metadata.cs (16)
227
Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.Parameter });
242
Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.ReturnType });
257
Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.ReturnType });
272
Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.ReturnType });
402
Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.Caller });
419
Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.Caller });
436
Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.Caller });
453
Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.Caller });
469
Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.Caller });
470
Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.Parameter });
485
Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.Caller });
486
Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.Parameter });
540
m => Assert.True(m is CustomEndpointMetadata { Source:
MetadataSource
.Parameter }),
544
m => Assert.True(m is CustomEndpointMetadata { Source:
MetadataSource
.Caller }));
560
Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.Parameter });
562
Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata { Source:
MetadataSource
.Property });
RequestDelegateGenerator\SharedTypes.cs (5)
566
builder.Metadata.Add(new CustomEndpointMetadata { Source =
MetadataSource
.Parameter });
574
public
MetadataSource
Source { get; init; }
601
builder.Metadata.Add(new CustomEndpointMetadata { Source =
MetadataSource
.Parameter });
614
builder.Metadata.Add(new CustomEndpointMetadata { Source =
MetadataSource
.Property });
621
builder.Metadata.Add(new CustomEndpointMetadata { Source =
MetadataSource
.ReturnType });