public void WhenICreateAnEmployeeWithName(string name) { PostEmployeePoco body = new PostEmployeePoco(); body.SetDefaultValues(); body.name = name; RestResponse = this.CreateEmployee(body); EmployeeId = JsonConvert.DeserializeObject <PostEmployeePoco>(RestResponse.Content).id; }
public void GivenIHaveValidEmployeeWithSalary(string salary) { PostEmployeePoco employeePoco = new PostEmployeePoco(); employeePoco.SetDefaultValues(); employeePoco.salary = salary; employeeId = new PostEmployeeSteps().CreateEmployeeAndGetId(employeePoco); }