diff options
author | 杨宇千 <crupest@outlook.com> | 2019-11-12 20:09:41 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-11-12 20:09:41 +0800 |
commit | c348cd3972aa30eb3f09ae61ba99374527a01af8 (patch) | |
tree | 9ed402bdfdf633a5d49116e7ce03abb36454856a /Timeline/Resources/Controllers | |
parent | ea8d82143c07afb38767d6afb4be0031452495fb (diff) | |
download | timeline-c348cd3972aa30eb3f09ae61ba99374527a01af8.tar.gz timeline-c348cd3972aa30eb3f09ae61ba99374527a01af8.tar.bz2 timeline-c348cd3972aa30eb3f09ae61ba99374527a01af8.zip |
Complete personal timeline controller unit tests.
Diffstat (limited to 'Timeline/Resources/Controllers')
3 files changed, 41 insertions, 11 deletions
diff --git a/Timeline/Resources/Controllers/TimelineController.Designer.cs b/Timeline/Resources/Controllers/TimelineController.Designer.cs index 5a4209c3..47c43fa2 100644 --- a/Timeline/Resources/Controllers/TimelineController.Designer.cs +++ b/Timeline/Resources/Controllers/TimelineController.Designer.cs @@ -97,20 +97,38 @@ namespace Timeline.Resources.Controllers { }
/// <summary>
+ /// Looks up a localized string similar to You have no permission to read posts of the timeline..
+ /// </summary>
+ internal static string MessagePostListGetForbid {
+ get {
+ return ResourceManager.GetString("MessagePostListGetForbid", resourceCulture);
+ }
+ }
+
+ /// <summary>
/// Looks up a localized string similar to You have no permission to create posts in the timeline..
/// </summary>
- internal static string MessagePostsCreateForbid {
+ internal static string MessagePostOperationCreateForbid {
get {
- return ResourceManager.GetString("MessagePostsCreateForbid", resourceCulture);
+ return ResourceManager.GetString("MessagePostOperationCreateForbid", resourceCulture);
}
}
/// <summary>
- /// Looks up a localized string similar to You have no permission to read posts of the timeline..
+ /// Looks up a localized string similar to You have no permission to delete posts in the timeline..
+ /// </summary>
+ internal static string MessagePostOperationDeleteForbid {
+ get {
+ return ResourceManager.GetString("MessagePostOperationDeleteForbid", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to The post to delete does not exist..
/// </summary>
- internal static string MessagePostsGetForbid {
+ internal static string MessagePostOperationDeleteNotExist {
get {
- return ResourceManager.GetString("MessagePostsGetForbid", resourceCulture);
+ return ResourceManager.GetString("MessagePostOperationDeleteNotExist", resourceCulture);
}
}
}
diff --git a/Timeline/Resources/Controllers/TimelineController.resx b/Timeline/Resources/Controllers/TimelineController.resx index 7e323164..0cf7e881 100644 --- a/Timeline/Resources/Controllers/TimelineController.resx +++ b/Timeline/Resources/Controllers/TimelineController.resx @@ -129,10 +129,16 @@ <data name="MessageMemberUserNotExist" xml:space="preserve">
<value>The {0}-st user to do operation {1} on does not exist.</value>
</data>
- <data name="MessagePostsCreateForbid" xml:space="preserve">
+ <data name="MessagePostListGetForbid" xml:space="preserve">
+ <value>You have no permission to read posts of the timeline.</value>
+ </data>
+ <data name="MessagePostOperationCreateForbid" xml:space="preserve">
<value>You have no permission to create posts in the timeline.</value>
</data>
- <data name="MessagePostsGetForbid" xml:space="preserve">
- <value>You have no permission to read posts of the timeline.</value>
+ <data name="MessagePostOperationDeleteForbid" xml:space="preserve">
+ <value>You have no permission to delete posts in the timeline.</value>
+ </data>
+ <data name="MessagePostOperationDeleteNotExist" xml:space="preserve">
+ <value>The post to delete does not exist.</value>
</data>
</root>
\ No newline at end of file diff --git a/Timeline/Resources/Controllers/TimelineController.zh.resx b/Timeline/Resources/Controllers/TimelineController.zh.resx index cacce5fa..170ab4cd 100644 --- a/Timeline/Resources/Controllers/TimelineController.zh.resx +++ b/Timeline/Resources/Controllers/TimelineController.zh.resx @@ -123,10 +123,16 @@ <data name="MessageMemberUserNotExist" xml:space="preserve">
<value>第{0}个做{1}操作的用户不存在。</value>
</data>
- <data name="MessagePostsCreateForbid" xml:space="preserve">
+ <data name="MessagePostListGetForbid" xml:space="preserve">
+ <value>你没有权限读取这个时间线消息。</value>
+ </data>
+ <data name="MessagePostOperationCreateForbid" xml:space="preserve">
<value>你没有权限在这个时间线中创建消息。</value>
</data>
- <data name="MessagePostsGetForbid" xml:space="preserve">
- <value>你没有权限读取这个时间线消息。</value>
+ <data name="MessagePostOperationDeleteForbid" xml:space="preserve">
+ <value>你没有权限在这个时间线中删除消息。</value>
+ </data>
+ <data name="MessagePostOperationDeleteNotExist" xml:space="preserve">
+ <value>要删除的消息不存在。</value>
</data>
</root>
\ No newline at end of file |