public void GivenIHaveGeneratedObjectToPut() { var postId = ScenarioContext.Current.Get <int>(SharedSteps.CURRENT_POST_RESPONSE_ID); var objToPut = EditedPost.GenerateObject(postId); ScenarioContext.Current[SharedSteps.OBJECT_SEND_DATA_PREPARED] = objToPut; }
public static EditedPost GenerateObject(int id) { EditedPost post = new EditedPost(); post.id = id; post.userId = 10; post.title = "Edited Post"; post.body = Faker.Lorem.Paragraph(50); return(post); }