Fix unit test SavePicture function (#435)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user