public void ChangeUserProfileImageApiTest() { var fileName = "123.jpg"; var filePath = "C:/Users/hydra/Downloads/123.jpg"; var user = new UserConstructor(); var createdUser = AuthRequests.SendRequestClientSignUpPost(user.User); var imageId = ClientRequests.SendReguestUploadClientImagesPost(createdUser.TokenData.Token, fileName, filePath); var responseModel = ClientRequests.SendRequestUploadClientProfileImagePatch(createdUser.TokenData.Token, imageId); Assert.Multiple(() => { Assert.AreEqual(imageId, responseModel.Model.Avatar.Id); Assert.AreEqual(HttpStatusCode.OK, responseModel.Response.StatusCode); }); }
public void ISendRequestPostToRoureImagesUploadWithValidBody() { _expectedImage = ClientRequests.SendReguestUploadClientImagesPost(_user.TokenData.Token); }