Skip to content
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

Merged
merged 5 commits into from
Oct 31, 2024

Conversation

toporoviv
Copy link
Contributor

No description provided.

return new UserShortInfo
{
Display = element.GetProperty("display").GetString() ?? string.Empty,
Id = element.GetProperty("id").GetString() ?? string.Empty
Display = display ?? throw new ArgumentNullException(display),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А точно исключение кидать надо? Эти оба поля обязательные?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Плюс там еще ниже есть точно такой же кейс. ToFieldInfoCollection например.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

поля обязательные. Второй кейс поправил, там только поле Key необязательное

Comment on lines 61 to 63
Id = display ?? throw new ArgumentNullException(display),
Key = item.GetProperty("key").GetString(),
Display = id ?? throw new ArgumentNullException(id)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

display и id местами перепутано.

@gizdatullin gizdatullin merged commit f28a776 into main Oct 31, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants