public FileServiceTests() { this.s3Client = Substitute.For <IAmazonS3>(); this.regisAgent = Substitute.For <IRedisDataAgent>(); file = Substitute.For <IFormFile>(); s3 = Substitute.For <IS3>(); fileService = new FileService(s3Client, regisAgent, s3); }
public ClasseController(IServiceBus <Classe> serviceBus, IRedisDataAgent redisDataAgent) { this.serviceBus = serviceBus; this.serviceBus.AddRedisDataAgent(redisDataAgent); }
public FileService(IAmazonS3 s3Client, IRedisDataAgent regisAgent, IS3 s3) { this.s3Client = s3Client ?? throw new ArgumentNullException(nameof(s3Client)); this.regisAgent = regisAgent ?? throw new ArgumentNullException(nameof(regisAgent)); this.s3 = s3 ?? throw new ArgumentNullException(nameof(s3)); }
public OpenWeatherCacheDecorator(IRedisDataAgent redisDataAgent, OpenWeatherApiClient openWeatherApiClient) { _redisDataAgent = redisDataAgent; _openWeatherApiClient = openWeatherApiClient; }
public SetorController(IServiceBus <Setor> serviceBus, IRedisDataAgent redisDataAgent) { this.serviceBus = serviceBus; this.serviceBus.AddRedisDataAgent(redisDataAgent); }
public IEnumerable <T> GetData(IRedisDataAgent redisDataAgent) { this.redisDataAgent = redisDataAgent; return(GetData()); }
public IServiceBus <T> AddRedisDataAgent(IRedisDataAgent redisDataAgent) { this.redisDataAgent = redisDataAgent; return(this); }