public void Add_Post_Negative() { // arrange var provider = new HttpProvider(); // act var uploadedPost = provider.ExecuteApiMethod <Post>(PostRequests.Create(null)); // assert Assert.IsTrue(true); }
public void Add_Post() { // arrange var provider = new HttpProvider(); var post = new Post() { title = "test post", body = "this is a test post", userId = 1 }; // act var uploadedPost = provider.ExecuteApiMethod <Post>(PostRequests.Create(post)); // assert Assert.IsTrue(uploadedPost.userId == post.userId && uploadedPost.body.Equals(post.body) && uploadedPost.title.Equals(post.title)); }