public void Get_Third_Post() { // arrange var provider = new HttpProvider(); // act var post = provider.ExecuteApiMethod <Post>(PostRequests.Get("3")); // assert Assert.IsTrue(post.id == 3); }
public void Get_Posts_List() { // arrange var provider = new HttpProvider(); // act var posts = provider.ExecuteApiMethod <List <Post> >(PostRequests.Get()); // assert Assert.IsTrue(posts.Count > 0); }