public void Upload_WithInvalidFormFile_ShouldReturnNull() { IImageUploadResult result = null; var imagesService = new Mock <IImagesService>(); imagesService.Setup(x => x.Upload(null, GlobalConstants.PlayerName)) .Returns(result); }
public void Upload_WithInvalidType_ShouldReturnNull(string type) { IImageUploadResult result = null; var imagesService = new Mock <IImagesService>(); imagesService.Setup(x => x.Upload(new Mock <IFormFile>().Object, type)) .Returns(result); }