public void TestRestApi_Post_Generic_With_Async() { //Arrange var request = new RestRequest("posts", Method.POST); request.RequestFormat = DataFormat.Json; request.AddBody(new Post() { author = "Karry", id = "23", title = "Scrum Master" }); //Act var response = ApiHelpers.ExecuteAsyncRequest <Post>(client, request).GetAwaiter().GetResult(); //Assert Assert.That(response.Data.author, Is.EqualTo("Karry"), "Author is not correct"); }