public void Create_Board_Wrong_BoardSize_Should_Return_Error(int boardSize) { var request = new CreateGameRequest { BoardSize = boardSize, PlayerOne = Guid.NewGuid(), PlayerTwo = Guid.NewGuid() }; SetupMock(new Board(request.PlayerOne, boardSize)); SetupMock(new Board(request.PlayerTwo, boardSize)); var boardService = new BoardService(_repo.Object, _logger.Object); Should.Throw <ValidationModelException>(() => boardService.CreateGame(request)); }