public void ThenICanConfirmNameIs(string name) { var response = StefRestHelper.GetResponse(); Console.WriteLine(response.Content); //Console.WriteLine(response.ResponseStatus); //Console.WriteLine(response.Server); Console.WriteLine(response.StatusCode); Console.WriteLine(response.Content.Contains("employee_name" + ":" + "Scott")); //if (response.StatusCode == System.Net.HttpStatusCode.OK) //{ // Assert.That(response.Content.Contains("Scott"), Is.EqualTo(employee_name), "The name is not Scott"); //} }
public void WhenICallGetMethodToGetUserInformationUsingId(string id) { StefRestHelper.CreateRequest(id); }
public void GivenIHaveReachedTheEndpoint(string endpoint) { StefRestHelper.SetURL(endpoint); }