public async void WhenCallToStartNewGame_DoPostRequestWithTheCorrectData() { const string expectedWord = "_____"; const string expectedToken = "token"; var newGameResponse = new GameServerService.NewGameResponse { hangman = expectedWord, token = expectedToken }; _restClient.Post <Request, GameServerService.NewGameResponse>(EndPoints.NewGame, Arg.Any <Request>()) .Returns(newGameResponse); var(word, token) = await _gameServerService.StartNewGame(); Assert.AreEqual(expectedWord, word.Value); Assert.AreEqual(expectedToken, token.Value); }