public void WhenIPostEmployeeToTheApi()
        {
            var restService = new RestService();
            var helper      = new StepDefinitionHelper();

            foreach (var emp in _employees)
            {
                var response = restService.MakePostRequest(RestServiceHelper.BuildJsonObject(emp));
                isSuccessfull = response.IsSuccessful;
            }
        }
Esempio n. 2
0
 public void WhenIPostEmployeeToTheApi()
 {
     var restService = new RestService();
     var helper      = new StepDefinitionHelper();
     //Here you need to write a code that will add both employees by making a POST operation to the dummy endpoing which can be found in the Endpoints.cs class.
 }