public static ISheet AddCard(this ISheet builder, string label, Card card, Member user)
        {
            var userName = "";
            if (user != null)
            {
                userName = user.FullName;
            }

            var row = builder.CreateRow(builder.LastRowNum + 1);

            row.CreateCell(0).SetCellValue("");

            row.CreateCell(1).SetCellValue(label);

            row.CreateCell(2).SetCellValue(card.Name);
            row.GetCell(2).CellStyle.WrapText = true;
            row.GetCell(2).Hyperlink = new HSSFHyperlink(HyperlinkType.URL) { Address = card.Url };

            row.CreateCell(3).SetCellValue("");

            row.CreateCell(4).SetCellValue(userName);

            row.CreateCell(5).SetCellValue("");

            return builder;
        }
 public TrelloWasAuthorizedEvent(Member member)
 {
     this.member = member;
 }
        public void GivenATrelloServiceWhenGetMember()
        {
            _member = new Member
            {
                Id = "Member1",
                FullName = "member",
                Username = "******",
                AvatarHash = "11111"
            };
            _anotherMember = new Member
            {
                Id = "Member2",
                FullName = "another member",
                Username = "******",
                AvatarHash = "22222"
            };

            var members = new List<Member>
            {
                _member,
                _anotherMember,
            };

            var mockBoards = new Mock<IBoards>();
            mockBoards
                .Setup(b => b.WithId(It.IsAny<string>()))
                .Returns(new Board());

            var mockMembers = new Mock<IMembers>();
            mockMembers
                .Setup(m => m.ForBoard(It.IsAny<Board>(), It.IsAny<MemberFilter>()))
                .Returns(members);

            var mockTrelloService = new Mock<ITrello>();
            mockTrelloService
                .SetupGet(s => s.Boards)
                .Returns(mockBoards.Object);
            mockTrelloService
                .SetupGet(s => s.Members)
                .Returns(mockMembers.Object);

            var trelloBoardService = new TrelloBoardService(mockTrelloService.Object, "boardId");

            _result = trelloBoardService.GetMembers();
        }