5 writes to Source
Microsoft.AspNetCore.Mvc.Core.Test (5)
ApplicationModels\EndpointMetadataProviderTest.cs (5)
107
builder => builder.Metadata.Add(new CustomEndpointMetadata() {
Source
= MetadataSource.Caller }),
111
builder => builder.Metadata.Add(new CustomEndpointMetadata() {
Source
= MetadataSource.Finally }),
401
builder.Metadata.Add(new CustomEndpointMetadata {
Source
= MetadataSource.Parameter });
409
builder.Metadata.Add(new CustomEndpointMetadata {
Source
= MetadataSource.ReturnType });
419
builder.Metadata.Add(new CustomEndpointMetadata {
Source
= MetadataSource.ReturnType });
9 references to Source
Microsoft.AspNetCore.Mvc.Core.Test (9)
ApplicationModels\EndpointMetadataProviderTest.cs (9)
38
Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata {
Source
: MetadataSource.ReturnType });
49
endpoint => Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata {
Source
: MetadataSource.ReturnType }),
50
endpoint => Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata {
Source
: MetadataSource.ReturnType }));
82
Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata {
Source
: MetadataSource.Parameter });
93
endpoint => Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata {
Source
: MetadataSource.Parameter }),
94
endpoint => Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata {
Source
: MetadataSource.Parameter }));
121
m => Assert.True(m is CustomEndpointMetadata {
Source
: MetadataSource.Caller }),
123
m => Assert.True(m is CustomEndpointMetadata {
Source
: MetadataSource.Parameter }),
128
m => Assert.True(m is CustomEndpointMetadata {
Source
: MetadataSource.Finally }),