Ejemplo n.º 1
0
        public GameBoard(IFieldListFactory fieldListFactory, int numberOfPlayers)
        {
            this.fieldListFactory = fieldListFactory;
            this.moveFactory = new MoveFactory();

            this.Fields = this.fieldListFactory.Create(Size, numberOfPlayers);
        }
Ejemplo n.º 2
0
 public GameBoard(IFieldListFactory fieldListFactory, IMoveFactory moveFactory, int numberOfPlayers)
     : this(fieldListFactory, numberOfPlayers)
 {
     this.moveFactory = moveFactory;
 }
Ejemplo n.º 3
0
        public void Setup()
        {
            this.fieldListFactory = A.Fake<IFieldListFactory>();
            this.board = this.Create8x8Board();
            A.CallTo(() => this.fieldListFactory.Create(A<int>._, A<int>._)).Returns(this.board);
            this.moveFactory = A.Fake<IMoveFactory>();

            this.testee = new GameBoard(this.fieldListFactory, this.moveFactory, 4);
        }