@@ -37,7 +37,7 @@ public void api_descriptions_should_recognize_direct_routes()
37
37
var descriptions = apiExplorer . ApiDescriptions ;
38
38
39
39
// assert
40
- descriptions . Single ( ) . Should ( ) . Should ( ) . BeEquivalentTo (
40
+ descriptions . Single ( ) . Should ( ) . BeEquivalentTo (
41
41
new { HttpMethod = Get , RelativePath = routeTemplate , ActionDescriptor = action } ,
42
42
options => options . ExcludingMissingMembers ( ) ) ;
43
43
}
@@ -70,7 +70,7 @@ public void api_descriptions_should_ignore_api_for_direct_route_action()
70
70
var descriptions = apiExplorer . ApiDescriptions ;
71
71
72
72
// assert
73
- descriptions . Single ( ) . Should ( ) . Should ( ) . BeEquivalentTo (
73
+ descriptions . Single ( ) . Should ( ) . BeEquivalentTo (
74
74
new { HttpMethod = Get , RelativePath = routeTemplate } ,
75
75
options => options . ExcludingMissingMembers ( ) ) ;
76
76
}
@@ -124,7 +124,7 @@ public void api_descriptions_should_recognize_composite_routes()
124
124
var descriptions = apiExplorer . ApiDescriptions ;
125
125
126
126
// assert
127
- descriptions . Single ( ) . Should ( ) . Should ( ) . BeEquivalentTo (
127
+ descriptions . Single ( ) . Should ( ) . BeEquivalentTo (
128
128
new { HttpMethod = Get , RelativePath = routeTemplate , ActionDescriptor = action } ,
129
129
options => options . ExcludingMissingMembers ( ) ) ;
130
130
}
@@ -208,7 +208,7 @@ public void api_descriptions_should_recognize_mixedX2Dcase_parameters()
208
208
{
209
209
// arrange
210
210
var configuration = new HttpConfiguration ( ) ;
211
- var routeTemplate = "api/values/{id }" ;
211
+ var routeTemplate = "api/values/{Id }" ;
212
212
var metadata = new ApiVersionMetadata ( ApiVersionModel . Empty , new ApiVersionModel ( new ApiVersion ( 1 , 0 ) ) ) ;
213
213
var controllerDescriptor = new HttpControllerDescriptor ( configuration , "ApiExplorerValues" , typeof ( DuplicatedIdController ) ) ;
214
214
var action = new ReflectedHttpActionDescriptor ( controllerDescriptor , typeof ( DuplicatedIdController ) . GetMethod ( "Get" ) )
@@ -225,7 +225,7 @@ public void api_descriptions_should_recognize_mixedX2Dcase_parameters()
225
225
var descriptions = apiExplorer . ApiDescriptions ;
226
226
227
227
// assert
228
- descriptions . Single ( ) . Should ( ) . Should ( ) . BeEquivalentTo (
228
+ descriptions . Single ( ) . Should ( ) . BeEquivalentTo (
229
229
new { HttpMethod = Get , RelativePath = routeTemplate , ActionDescriptor = action } ,
230
230
options => options . ExcludingMissingMembers ( ) ) ;
231
231
}
0 commit comments