public RegisteredUsers(GitLabWrapper gitLabWrapper, DXVcsWrapper vcsWrapper) { this.gitLabWrapper = gitLabWrapper; ADUsers = ADWrapper.GetUsers().ToDictionary(x => x.UserName, new UserNameEqualityComparer()); Users = CreateGitLabUsers().ToDictionary(x => x.UserName, new UserNameEqualityComparer()); this.VcsUsers = vcsWrapper.GetUsers().ToList(); }
public void SearchADUsers() { var dict = ADWrapper.GetUsers().ToDictionary(x => x.UserName); var user = dict["litvinov"]; Assert.IsNotNull(user.Email); }