public void WhenIGenerateABingoCardWithSpacesPerRow(int spacesRow, Table table) { var dictionary = new Dictionary <string, string>(); rangeList = new List <BingoApp.Entities.Range>(); foreach (var row in table.Rows) { dictionary.Add(row[0], row[1]); } foreach (var row in dictionary) { BingoApp.Entities.Range range = new BingoApp.Entities.Range(); int lowerBound; bool lower = int.TryParse(row.Key, out lowerBound); int higherBound; bool higher = int.TryParse(row.Value, out higherBound); range.length = spacesRow; range.LowestBound = lowerBound; range.HighestBound = higherBound; rangeList.Add(range); } bingoCard = new BingoApp.Factories.BingoCard(table.Rows.Count, spacesRow, "Test", rangeList).bingoCard; }
public void GivenIHaveABingoCardGenerator() { bingoCard = new BingoApp.Entities.BingoCard(); }