public void GivenTheReqresServiceIsRunningAndAPOSTRequestIsMadeToTheEndpoint(string resource) { string postBody = AppDomain.CurrentDomain.BaseDirectory.Replace("\\bin\\Debug", ""); // First method of tramsitting data via API _httpRequestMethods.PostMethod(resource, File.ReadAllText(postBody + @"\PostBodyData.json")); // File path is stored in postBody variable and passed // to the post method in the form of an argument. Note post method takes two arguments }