Esempio n. 1
0
        public void GivenIMadeARequestToCreateAUser()
        {
            String payloadCreateUser = @"{
                                    ""name"": ""morpheus"",
                                    ""job"": ""leader""
                                }";

            createUserDTO = DTOHelper.createUser(payloadCreateUser);
        }
Esempio n. 2
0
        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);
        }