public GameBoard(IFieldListFactory fieldListFactory, int numberOfPlayers) { this.fieldListFactory = fieldListFactory; this.moveFactory = new MoveFactory(); this.Fields = this.fieldListFactory.Create(Size, numberOfPlayers); }
public GameBoard(IFieldListFactory fieldListFactory, IMoveFactory moveFactory, int numberOfPlayers) : this(fieldListFactory, numberOfPlayers) { this.moveFactory = moveFactory; }
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); }