public async void WhenCallToGetSolution_DoGetRequestToTheServer() { _restClient .Get <GameServerService.GetSolutionRequest, GameServerService.GetSolutionResponse>( EndPoints.GetSolution, Arg.Any <GameServerService.GetSolutionRequest>()) .Returns(info => new GameServerService.GetSolutionResponse { solution = "word", token = "token" }); var(word, token) = await _gameServerService.GetSolution(); Assert.AreEqual("word", word.Value); Assert.AreEqual("token", token.Value); }