2 instantiations of CustomEndpointMetadata
Microsoft.AspNetCore.Routing.Tests (2)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (2)
555
builder.Metadata.Add(new
CustomEndpointMetadata
{ Source = MetadataSource.ReturnType });
572
builder.Metadata.Add(new
CustomEndpointMetadata
{ Source = MetadataSource.Parameter });
4 references to CustomEndpointMetadata
Microsoft.AspNetCore.Routing.Tests (4)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (4)
494
Assert.IsAssignableFrom<
CustomEndpointMetadata
>(m);
495
Assert.Equal(MetadataSource.Parameter, ((
CustomEndpointMetadata
)m).Source);
499
Assert.IsAssignableFrom<
CustomEndpointMetadata
>(m);
500
Assert.Equal(MetadataSource.ReturnType, ((
CustomEndpointMetadata
)m).Source);