20 references to RouteInfo
Microsoft.AspNetCore.Mvc.FunctionalTests (20)
ApiExplorerTest.cs (20)
186Assert.False(parameter.RouteInfo.IsOptional); 188Assert.Empty(parameter.RouteInfo.ConstraintTypes); 209Assert.False(parameter.RouteInfo.IsOptional); 211Assert.Equal("IntRouteConstraint", Assert.Single(parameter.RouteInfo.ConstraintTypes)); 232Assert.False(parameter.RouteInfo.IsOptional); 256Assert.False(parameter.RouteInfo.IsOptional); 258Assert.Equal("IntRouteConstraint", Assert.Single(parameter.RouteInfo.ConstraintTypes)); 282Assert.False(month.RouteInfo.IsOptional); 284Assert.Equal("RangeRouteConstraint", Assert.Single(month.RouteInfo.ConstraintTypes)); 287Assert.False(day.RouteInfo.IsOptional); 289Assert.Equal("IntRouteConstraint", Assert.Single(day.RouteInfo.ConstraintTypes)); 292Assert.False(year.RouteInfo.IsOptional); 294Assert.Equal("IntRouteConstraint", Assert.Single(year.RouteInfo.ConstraintTypes)); 318Assert.False(month.RouteInfo.IsOptional); 320Assert.Equal("RangeRouteConstraint", Assert.Single(month.RouteInfo.ConstraintTypes)); 323Assert.True(day.RouteInfo.IsOptional); 325Assert.Equal("IntRouteConstraint", Assert.Single(day.RouteInfo.ConstraintTypes)); 328Assert.True(year.RouteInfo.IsOptional); 330Assert.Equal("IntRouteConstraint", Assert.Single(year.RouteInfo.ConstraintTypes)); 377Assert.True(id.RouteInfo.IsOptional);