public async Task PostDeleteImage()
        {
            var dataStream = GenerateDataStream();
            var uploadImageResponsePost = await _imageServiceClient.UploadImage(dataStream);

            await _imageServiceClient.DeleteImage(uploadImageResponsePost.ImageId);

            var e = await Assert.ThrowsAsync <ImageServiceException>(() => _imageServiceClient.DownloadImage(uploadImageResponsePost.ImageId));

            Assert.Equal(HttpStatusCode.NotFound, e.StatusCode);
        }
        public async Task UploadDownloadImage()
        {
            var stream = CreateRandomStream();
            var uploadImageResponse = await _chatServiceClient.UploadImage(stream);

            _profilePicturesToCleanup.Add(uploadImageResponse.ImageId);

            var fetchedProfilePicture = await _chatServiceClient.DownloadImage(uploadImageResponse.ImageId);

            var imageStream = new MemoryStream(fetchedProfilePicture.Image);

            Assert.Equal(stream.ToArray(), imageStream.ToArray());
        }