Exemplo n.º 1
0
        public async Task UploadFileNoParametersAndRemove()
        {
            string path          = GetExampleImage();
            var    responseMaybe = await _client.UploadFile(path).ConfigureAwait(false);

            Assert.IsTrue(responseMaybe.HasValue);
            var response = responseMaybe.Value;

            Assert.NotNull(response);
            Assert.IsNotEmpty(response.Url);
            Assert.IsNull(response.AlbumId);
            Assert.IsTrue(response.IsPublic);
            await _client.RemoveFile(response.PublicId);
        }