-
Notifications
You must be signed in to change notification settings - Fork 71
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
Add async functions to IMembersClient and other changes #651
Conversation
Do not use System.Net types in public APIs.
- Improve Create Group and Create User mock to better emulate GitLab. - Add support for explicit Group Path in mock helpers. - Add `RemoveMemberFrom*Async` and Implement async versions of the other Group and Project methods. - Add `IUserClient.GetByUserNameAsync` - Add unit and integrations tests to verify behavior of both the GitHub and Mock `IMembersClient`.
@louis-z Do you know why the list of commits in this PR includes all the commits from my previous PR? What am I not doing correctly? |
@@ -158,8 +160,10 @@ public Models.User Update(int id, UserUpsert userUpsert) | |||
var user = Server.Users.GetById(id); | |||
if (user != null) | |||
{ | |||
user.Name = userUpsert.Name; | |||
user.Email = userUpsert.Email; | |||
// user.UserName = userUpsert.Username ?? user.UserName; // TODO |
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.
Is there an reason of why the username can't be updated like the others?
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.
@Toa741 NGitLab.Mock.User.UserName
is not settable. I assumed there is a reason for this, I just didn't have the time or need to investigate right now.
There are a few things to look out for:
|
Replaced by PR #652. |
IUserClient.GetByUserNameAsync
RemoveMemberFrom*Async
and Implement async versions of the other Group and Project methods.IMembersClient
.