@@ -76,7 +76,7 @@ public async Task GetAsync_Throws_405_If_No_Service()
76
76
var exception = await Assert . ThrowsAsync < RequestMethodNotAllowedException > ( ( ) => controller . GetAsync ( CancellationToken . None ) ) ;
77
77
78
78
// Assert
79
- Assert . Equal ( HttpStatusCode . MethodNotAllowed , exception . Error . StatusCode ) ;
79
+ Assert . Equal ( HttpStatusCode . MethodNotAllowed , exception . Errors [ 0 ] . StatusCode ) ;
80
80
Assert . Equal ( HttpMethod . Get , exception . Method ) ;
81
81
}
82
82
@@ -106,7 +106,7 @@ public async Task GetAsyncById_Throws_405_If_No_Service()
106
106
var exception = await Assert . ThrowsAsync < RequestMethodNotAllowedException > ( ( ) => controller . GetAsync ( id , CancellationToken . None ) ) ;
107
107
108
108
// Assert
109
- Assert . Equal ( HttpStatusCode . MethodNotAllowed , exception . Error . StatusCode ) ;
109
+ Assert . Equal ( HttpStatusCode . MethodNotAllowed , exception . Errors [ 0 ] . StatusCode ) ;
110
110
Assert . Equal ( HttpMethod . Get , exception . Method ) ;
111
111
}
112
112
@@ -136,7 +136,7 @@ public async Task GetRelationshipsAsync_Throws_405_If_No_Service()
136
136
var exception = await Assert . ThrowsAsync < RequestMethodNotAllowedException > ( ( ) => controller . GetRelationshipAsync ( id , string . Empty , CancellationToken . None ) ) ;
137
137
138
138
// Assert
139
- Assert . Equal ( HttpStatusCode . MethodNotAllowed , exception . Error . StatusCode ) ;
139
+ Assert . Equal ( HttpStatusCode . MethodNotAllowed , exception . Errors [ 0 ] . StatusCode ) ;
140
140
Assert . Equal ( HttpMethod . Get , exception . Method ) ;
141
141
}
142
142
@@ -166,7 +166,7 @@ public async Task GetRelationshipAsync_Throws_405_If_No_Service()
166
166
var exception = await Assert . ThrowsAsync < RequestMethodNotAllowedException > ( ( ) => controller . GetSecondaryAsync ( id , string . Empty , CancellationToken . None ) ) ;
167
167
168
168
// Assert
169
- Assert . Equal ( HttpStatusCode . MethodNotAllowed , exception . Error . StatusCode ) ;
169
+ Assert . Equal ( HttpStatusCode . MethodNotAllowed , exception . Errors [ 0 ] . StatusCode ) ;
170
170
Assert . Equal ( HttpMethod . Get , exception . Method ) ;
171
171
}
172
172
@@ -199,7 +199,7 @@ public async Task PatchAsync_Throws_405_If_No_Service()
199
199
var exception = await Assert . ThrowsAsync < RequestMethodNotAllowedException > ( ( ) => controller . PatchAsync ( id , resource , CancellationToken . None ) ) ;
200
200
201
201
// Assert
202
- Assert . Equal ( HttpStatusCode . MethodNotAllowed , exception . Error . StatusCode ) ;
202
+ Assert . Equal ( HttpStatusCode . MethodNotAllowed , exception . Errors [ 0 ] . StatusCode ) ;
203
203
Assert . Equal ( HttpMethod . Patch , exception . Method ) ;
204
204
}
205
205
@@ -247,7 +247,7 @@ public async Task PatchRelationshipsAsync_Throws_405_If_No_Service()
247
247
var exception = await Assert . ThrowsAsync < RequestMethodNotAllowedException > ( ( ) => controller . PatchRelationshipAsync ( id , string . Empty , null , CancellationToken . None ) ) ;
248
248
249
249
// Assert
250
- Assert . Equal ( HttpStatusCode . MethodNotAllowed , exception . Error . StatusCode ) ;
250
+ Assert . Equal ( HttpStatusCode . MethodNotAllowed , exception . Errors [ 0 ] . StatusCode ) ;
251
251
Assert . Equal ( HttpMethod . Patch , exception . Method ) ;
252
252
}
253
253
@@ -277,7 +277,7 @@ public async Task DeleteAsync_Throws_405_If_No_Service()
277
277
var exception = await Assert . ThrowsAsync < RequestMethodNotAllowedException > ( ( ) => controller . DeleteAsync ( id , CancellationToken . None ) ) ;
278
278
279
279
// Assert
280
- Assert . Equal ( HttpStatusCode . MethodNotAllowed , exception . Error . StatusCode ) ;
280
+ Assert . Equal ( HttpStatusCode . MethodNotAllowed , exception . Errors [ 0 ] . StatusCode ) ;
281
281
Assert . Equal ( HttpMethod . Delete , exception . Method ) ;
282
282
}
283
283
}
0 commit comments