Пример #1
0
 public Room(int width, int length, IDirectionMapper directionMapper)
 {
     this.directionMapper = directionMapper;
     cells = new List <Cell>(width * length);
     for (int x = 0; x < width; x++)
     {
         for (int y = 0; y < length; y++)
         {
             cells.Add(new Cell(new Position(x, y)));
         }
     }
 }
Пример #2
0
 public void SetUp()
 {
     directionMapper = NewMock <IDirectionMapper>();
 }