private void UpdateSearchUI() { if (TeamMembers.Any(user => user.Id == SearchResultUser.Id)) { switchButtonState(AddToTeamButton, false); } else { switchButtonState(AddToTeamButton, true); } }
public TestData WithRelatedWorkItems(int relatedWorkItemsCount) { if (TeamMembers == null || !TeamMembers.Any() || relatedWorkItemsCount == 0) { return(this); } foreach (var member in TeamMembers) { member.RelatedWorkItemIds = Enumerable.Range(0, relatedWorkItemsCount) .Select(_ => _random.Next(100_000_000)) .ToList(); } return(this); }