コード例 #1
0
        public void GetNameFromUriWithoutExtensionSouldPassWithoutError(string uri)
        {
            var fileName = StringManipulations.GetNameFromUriWithoutExtension(uri);

            Assert.Equal("ggtmr0rydvxdeu2xjcoj", fileName);
        }
コード例 #2
0
        public void GetNameFromUriWithoutExtensionSouldReturnNull()
        {
            var fileName = StringManipulations.GetNameFromUriWithoutExtension(string.Empty);

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

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