Fix unit test SavePicture function (#435)

This commit is contained in:
Shady Nagy
2020-07-28 23:33:21 +02:00
committed by GitHub
parent 3ee9fff14a
commit 24cf9be6ae

View File

@@ -24,7 +24,7 @@ namespace Microsoft.eShopWeb.Infrastructure.Services
public async Task<bool> SavePicture(string pictureName, string pictureBase64) public async Task<bool> SavePicture(string pictureName, string pictureBase64)
{ {
if (!await UploadFile(pictureName, Convert.FromBase64String(pictureBase64))) if (string.IsNullOrEmpty(pictureBase64) || !await UploadFile(pictureName, Convert.FromBase64String(pictureBase64)))
{ {
return false; return false;
} }