diff options
author | 杨宇千 <crupest@outlook.com> | 2019-10-17 20:46:57 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-10-17 20:46:57 +0800 |
commit | fa2a3282c51d831b25f374803301e75eac15d11c (patch) | |
tree | dc7688d7d2dd5ab28a7e3c553154ee84676f75d2 /Timeline.Tests/Helpers/InvalidModelTestHelpers.cs | |
parent | 21de8da2feab19d3fbc392e71bf0dcec25ec8d6b (diff) | |
download | timeline-fa2a3282c51d831b25f374803301e75eac15d11c.tar.gz timeline-fa2a3282c51d831b25f374803301e75eac15d11c.tar.bz2 timeline-fa2a3282c51d831b25f374803301e75eac15d11c.zip |
...
Diffstat (limited to 'Timeline.Tests/Helpers/InvalidModelTestHelpers.cs')
-rw-r--r-- | Timeline.Tests/Helpers/InvalidModelTestHelpers.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Timeline.Tests/Helpers/InvalidModelTestHelpers.cs b/Timeline.Tests/Helpers/InvalidModelTestHelpers.cs index af432095..4a445ca4 100644 --- a/Timeline.Tests/Helpers/InvalidModelTestHelpers.cs +++ b/Timeline.Tests/Helpers/InvalidModelTestHelpers.cs @@ -1,6 +1,5 @@ using System.Net.Http;
using System.Threading.Tasks;
-using Timeline.Models.Http;
namespace Timeline.Tests.Helpers
{
@@ -10,14 +9,14 @@ namespace Timeline.Tests.Helpers {
var response = await client.PostAsJsonAsync(url, body);
response.Should().HaveStatusCodeBadRequest()
- .And.Should().HaveBodyAsCommonResponseWithCode(CommonResponse.ErrorCodes.InvalidModel);
+ .And.Should().HaveBodyAsCommonResponseWithCode(ErrorCodes.Http.Common.InvalidModel);
}
public static async Task TestPutInvalidModel<T>(HttpClient client, string url, T body)
{
var response = await client.PutAsJsonAsync(url, body);
response.Should().HaveStatusCodeBadRequest()
- .And.Should().HaveBodyAsCommonResponseWithCode(CommonResponse.ErrorCodes.InvalidModel);
+ .And.Should().HaveBodyAsCommonResponseWithCode(ErrorCodes.Http.Common.InvalidModel);
}
}
}
|