-
Notifications
You must be signed in to change notification settings - Fork 6
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
Ivanchuk/Child refactor #165
Conversation
{ | ||
this.ValidateId(id, localizer); | ||
|
||
var children = await service.GetAllByParent(id).ConfigureAwait(false); |
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.
I think we need to implement checkout whether ParentId belongs to User, who called method.
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.
Dear @OlhaHoliak,
Thank you a lot for your advice. I think it is a good idea, so I have implemented it.
Please review.
Thank you a lot.
|
||
// Assert | ||
Assert.That(result, Is.Not.Null); | ||
Assert.AreEqual(200, result.StatusCode); |
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.
would be nice to use constants for 200 and 204 status code))
cold use this Assert.IsNotNull(result); for isnot null check))
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.
Dear @yfedo,
Thank you a lot for your advice. I have implemented them in the current PR.
Kudos, SonarCloud Quality Gate passed! |
Task #153