Exemplo n.º 1
0
        public void SetUp()
        {
            _validator         = Substitute.For <IValidator <DownloadImageCommand> >();
            _fileSystemService = Substitute.For <IFileSystemService>();

            _sut = new DownloadImageCommandHandler(_fileSystemService, _validator);
        }
        public void SetUp()
        {
            _cardImageQueueService = Substitute.For <ICardImageQueueService>();
            _validator             = Substitute.For <IValidator <DownloadImageCommand> >();

            _sut = new DownloadImageCommandHandler(_cardImageQueueService, _validator);
        }
Exemplo n.º 3
0
 public async Task <string> Download(int id)
 {
     return(await DownloadImageCommandHandler.DownloadImage(_imageRepository, id));
 }