public CellRepository() { _cells = new Dictionary<CellId, Cell>(); foreach(var niner in Enumerable.Range(0, 9)) { foreach (var withinNiner in Enumerable.Range(0, 9)) { var cellId = new CellId(niner, withinNiner); _cells.Add(cellId, new Cell(cellId)); } } }
public Cell(CellId id) { _id = id; _potentials = new HashSet<int>(); }