aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests/Controllers/PersonalTimelineControllerTest.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-19 22:45:43 +0800
committercrupest <crupest@outlook.com>2020-01-19 22:45:43 +0800
commite6069a6980ec6d2505e19026d4c84a9588f153dc (patch)
tree1fa3969a53138becb76a7eef7bafdafc7046c12c /Timeline.Tests/Controllers/PersonalTimelineControllerTest.cs
parentc5f3c69b3a008ab87542e523e2a59f37801bd65a (diff)
downloadtimeline-e6069a6980ec6d2505e19026d4c84a9588f153dc.tar.gz
timeline-e6069a6980ec6d2505e19026d4c84a9588f153dc.tar.bz2
timeline-e6069a6980ec6d2505e19026d4c84a9588f153dc.zip
Basically finish refactor of error codes.
Diffstat (limited to 'Timeline.Tests/Controllers/PersonalTimelineControllerTest.cs')
-rw-r--r--Timeline.Tests/Controllers/PersonalTimelineControllerTest.cs12
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();
}