protected override void When() { try { _result = _sut.CreateGame(_newGame); } catch (Exception exception) { _exception = exception; } }
public IActionResult AddGame([FromBody] NewGame newGame) { var id = _gamesCommandService.CreateGame(newGame); return(CreatedAtAction(nameof(GetGameReport), new { id = id }, newGame)); }