diff options
author | crupest <crupest@outlook.com> | 2020-01-19 22:45:43 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-01-19 22:45:43 +0800 |
commit | 40eea04e1ec9b71c5215e9dce5a6963ea60cafaa (patch) | |
tree | 1fa3969a53138becb76a7eef7bafdafc7046c12c /Timeline.Tests/Controllers/PersonalTimelineControllerTest.cs | |
parent | 4ec507df6251bc1dae5204fdc6aaf14ddbb268f6 (diff) | |
download | timeline-40eea04e1ec9b71c5215e9dce5a6963ea60cafaa.tar.gz timeline-40eea04e1ec9b71c5215e9dce5a6963ea60cafaa.tar.bz2 timeline-40eea04e1ec9b71c5215e9dce5a6963ea60cafaa.zip |
Basically finish refactor of error codes.
Diffstat (limited to 'Timeline.Tests/Controllers/PersonalTimelineControllerTest.cs')
-rw-r--r-- | Timeline.Tests/Controllers/PersonalTimelineControllerTest.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Timeline.Tests/Controllers/PersonalTimelineControllerTest.cs b/Timeline.Tests/Controllers/PersonalTimelineControllerTest.cs index 372ba8a7..bbc8ba75 100644 --- a/Timeline.Tests/Controllers/PersonalTimelineControllerTest.cs +++ b/Timeline.Tests/Controllers/PersonalTimelineControllerTest.cs @@ -142,7 +142,7 @@ namespace Timeline.Tests.Controllers .Which;
result.StatusCode.Should().Be(StatusCodes.Status403Forbidden);
result.Value.Should().BeAssignableTo<CommonResponse>()
- .Which.Code.Should().Be(ErrorCodes.Http.Timeline.PostListGetForbid);
+ .Which.Code.Should().Be(ErrorCodes.Common.Forbid);
_service.VerifyAll();
}
@@ -185,7 +185,7 @@ namespace Timeline.Tests.Controllers })).Result.Should().NotBeNull().And.BeAssignableTo<ObjectResult>().Which;
result.StatusCode.Should().Be(StatusCodes.Status403Forbidden);
result.Value.Should().BeAssignableTo<CommonResponse>()
- .Which.Code.Should().Be(ErrorCodes.Http.Timeline.PostOperationCreateForbid);
+ .Which.Code.Should().Be(ErrorCodes.Common.Forbid);
_service.VerifyAll();
}
@@ -249,7 +249,7 @@ namespace Timeline.Tests.Controllers })).Should().NotBeNull().And.BeAssignableTo<ObjectResult>().Which;
result.StatusCode.Should().Be(StatusCodes.Status403Forbidden);
result.Value.Should().BeAssignableTo<CommonResponse>()
- .Which.Code.Should().Be(ErrorCodes.Http.Timeline.PostOperationDeleteForbid);
+ .Which.Code.Should().Be(ErrorCodes.Common.Forbid);
_service.VerifyAll();
}
@@ -266,7 +266,7 @@ namespace Timeline.Tests.Controllers })).Should().NotBeNull().And.BeAssignableTo<ObjectResult>().Which;
result.StatusCode.Should().Be(StatusCodes.Status400BadRequest);
result.Value.Should().BeAssignableTo<CommonResponse>()
- .Which.Code.Should().Be(ErrorCodes.Http.Timeline.PostOperationDeleteNotExist);
+ .Which.Code.Should().Be(ErrorCodes.TimelineController.PostOperationDelete_NotExist);
_service.VerifyAll();
}
@@ -347,7 +347,7 @@ namespace Timeline.Tests.Controllers });
result.Should().NotBeNull().And.BeAssignableTo<BadRequestObjectResult>()
.Which.Value.Should().BeAssignableTo<CommonResponse>()
- .Which.Code.Should().Be(ErrorCodes.Http.Common.InvalidModel);
+ .Which.Code.Should().Be(ErrorCodes.Common.InvalidModel);
_service.VerifyAll();
}
@@ -366,7 +366,7 @@ namespace Timeline.Tests.Controllers });
result.Should().NotBeNull().And.BeAssignableTo<BadRequestObjectResult>()
.Which.Value.Should().BeAssignableTo<CommonResponse>()
- .Which.Code.Should().Be(ErrorCodes.Http.Timeline.ChangeMemberUserNotExist);
+ .Which.Code.Should().Be(ErrorCodes.UserCommon.NotExist);
_service.VerifyAll();
}
|