public void GetNameFromUriWithoutExtensionSouldPassWithoutError(string uri)
        {
            var fileName = StringManipulations.GetNameFromUriWithoutExtension(uri);

            Assert.Equal("ggtmr0rydvxdeu2xjcoj", fileName);
        }
        public void GetNameFromUriWithoutExtensionSouldReturnNull()
        {
            var fileName = StringManipulations.GetNameFromUriWithoutExtension(string.Empty);

            Assert.Null(fileName);
        }
Beispiel #3
0
        private async Task <string> DeleteImageFromCloudinaryAsync(string imagePath)
        {
            var cloudinaryPublicId = StringManipulations.GetNameFromUriWithoutExtension(imagePath);

            return(await CloudinaryExtension.DeleteImageImageAsync(this.cloudinary, cloudinaryPublicId));
        }