-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fixed issue fields and some tests #16
Conversation
return new UserShortInfo | ||
{ | ||
Display = element.GetProperty("display").GetString() ?? string.Empty, | ||
Id = element.GetProperty("id").GetString() ?? string.Empty | ||
Display = display ?? throw new ArgumentNullException(display), |
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.
А точно исключение кидать надо? Эти оба поля обязательные?
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.
Плюс там еще ниже есть точно такой же кейс. ToFieldInfoCollection например.
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.
поля обязательные. Второй кейс поправил, там только поле Key необязательное
Id = display ?? throw new ArgumentNullException(display), | ||
Key = item.GetProperty("key").GetString(), | ||
Display = id ?? throw new ArgumentNullException(id) |
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.
display и id местами перепутано.
No description provided.