Пример #1
0
        public async Task BatchDownloadsAndAppliesDifferentTypesOfData()
        {
            var board = TestEnvironment.Current.Board;
            var list  = board.Lists.First();

            var otherBoard = new Board(board.Id);
            var otherList  = new List(list.Id);

            TrelloConfiguration.Cache.Remove(otherBoard);
            TrelloConfiguration.Cache.Remove(otherList);

            otherBoard.Name.Should().BeNullOrEmpty();
            otherList.Name.Should().BeNullOrEmpty();

            await TrelloProcessor.Refresh(new IBatchRefreshable[] { otherBoard, otherList });

            otherBoard.Name.Should().Be(board.Name);
            otherList.Name.Should().Be(list.Name);
        }