public void Handle(SelectNextPlayerCommand eventDto) { var game = _context.GetContextInstance <GameContext>(); if (game.IsOver) { return; } _context.Notify(new NextPlayerSelected()); }
public void InitialBoardShouldBeEmpty() { var board = _context.GetContextInstance <BoardContext>(); Assert.True(board.Board.All(b => b.All(f => f == " "))); }