Esempio n. 1
0
        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");
            //}
        }
Esempio n. 2
0
 public void WhenICallGetMethodToGetUserInformationUsingId(string id)
 {
     StefRestHelper.CreateRequest(id);
 }
Esempio n. 3
0
 public void GivenIHaveReachedTheEndpoint(string endpoint)
 {
     StefRestHelper.SetURL(endpoint);
 }