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); }
private async Task <string> DeleteImageFromCloudinaryAsync(string imagePath) { var cloudinaryPublicId = StringManipulations.GetNameFromUriWithoutExtension(imagePath); return(await CloudinaryExtension.DeleteImageImageAsync(this.cloudinary, cloudinaryPublicId)); }