コード例 #1
0
 private void UpdateSearchUI()
 {
     if (TeamMembers.Any(user => user.Id == SearchResultUser.Id))
     {
         switchButtonState(AddToTeamButton, false);
     }
     else
     {
         switchButtonState(AddToTeamButton, true);
     }
 }
コード例 #2
0
ファイル: TestData.cs プロジェクト: bittola/Ether
        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);
        }