-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for Task completion_rule field #758
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just small nitpicks.
Id = "7287087200", | ||
Type = BoxType.file | ||
}, | ||
Message = "REVIEW PLZ K THX", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😄
@@ -399,6 +400,7 @@ public async Task CreateTask_ValidResponse() | |||
Assert.AreEqual(taskCreateRequest.Item.Id, payload.Item.Id); | |||
Assert.AreEqual(taskCreateRequest.Item.Type, payload.Item.Type); | |||
Assert.AreEqual(taskCreateRequest.Message, payload.Message); | |||
Assert.IsNull(payload.CompletionRule); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to check it explicitly? I don't see any reason to do this in here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure i can remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wait... this one is useful. Without it CompletionRule could be not marked as optional and then this field is automatically set to first value from enum BoxCompletionRule. I could move it to dedicated test?
Co-authored-by: Mateusz Woda <mwoda@box.com>
No description provided.