public void GivenIMadeARequestToCreateAUser() { String payloadCreateUser = @"{ ""name"": ""morpheus"", ""job"": ""leader"" }"; createUserDTO = DTOHelper.createUser(payloadCreateUser); }
public void GivenIMadeARequestToUpdateTheUser() { String payloadCreateUser = @"{ ""name"": ""pradeep"", ""job"": ""leader"" }"; String payloadUpdate = @"{ ""name"": ""name.updated"", ""job"": ""job.updated"" }"; var dtoHelper = new TfLAPITest.DTOHelper(); createUserDTO = DTOHelper.createUser(payloadCreateUser); updateUserDTO = dtoHelper.UpdateUser("/api/users/" + createUserDTO.Id, payloadUpdate); }