Exemplo n.º 1
0
 protected override void When()
 {
     try
     {
         _result = _sut.CreateGame(_newGame);
     }
     catch (Exception exception)
     {
         _exception = exception;
     }
 }
Exemplo n.º 2
0
        public IActionResult AddGame([FromBody] NewGame newGame)
        {
            var id = _gamesCommandService.CreateGame(newGame);

            return(CreatedAtAction(nameof(GetGameReport), new { id = id }, newGame));
        }