public void ChangeUserIndustryApiTest() { var expectedIndustry = "fashion"; var user = new UserConstructor(); var createdUser = AuthRequests.SendRequestClientSignUpPost(user.User); var responseModel = ClientRequests.SendRequestChangeClientProfileInfoPatch( expectedIndustry, createdUser.User.ClientProfile.LocationName, createdUser.User.ClientProfile.LocationTimezone, createdUser.TokenData.Token); Assert.Multiple(() => { Assert.AreEqual(expectedIndustry, responseModel.Model.Industry); Assert.AreEqual(HttpStatusCode.OK, responseModel.Response.StatusCode); }); }
public void ChangeUserComopanyLocationyApiTest() { var expectedLocationName = "New York"; var expectedLocationTimezone = "America/New_York"; var user = new UserConstructor(); var createdUser = AuthRequests.SendRequestClientSignUpPost(user.User); var responseModel = ClientRequests.SendRequestChangeClientProfileInfoPatch( createdUser.User.ClientProfile.Industry, expectedLocationName, expectedLocationTimezone, createdUser.TokenData.Token); Assert.Multiple(() => { Assert.AreEqual(expectedLocationName, responseModel.Model.LocationName); Assert.AreEqual(expectedLocationTimezone, responseModel.Model.LocationTimezone); Assert.AreEqual(HttpStatusCode.OK, responseModel.Response.StatusCode); }); }