public void ListStatsTest() { var expectedCardDataCount = 2; var listData = ListDataFactory.GetListData(ConfigurationFactory.DEFAULT_DONE_LIST_NAME); listData.AddCardData(new Model.Data.CardData()); listData.AddCardData(new Model.Data.CardData()); var listStats = new TrelloStats.Model.Stats.ListStats(listData); Assert.AreEqual(expectedCardDataCount, listStats.CardCount); }
private List<ListStats> GetListStats(List<ListData> listDataCollection) { var listStats = new List<ListStats>(); foreach (var listData in listDataCollection) { var listStat = new ListStats(listData); listStats.Add(listStat); } return listStats; }