public RedshiftClient(RedshiftConfiguration configuration, IRedshiftDao redshiftDao = null, IS3Uploader s3Uploader = null) { _configuration = configuration; if (redshiftDao == null) { _redshiftDao = new RedshiftDao(configuration); } else { _redshiftDao = redshiftDao; } if (s3Uploader == null) { _s3Uploader = new S3Uploader(configuration.S3BucketName); } else { _s3Uploader = s3Uploader; } _cachedMultiPartDocumentPaths = new Dictionary <string, List <S3TableDocuments> >(); }
public S3UploaderTests() { _client = new Mock <IAmazonS3>(); var services = ConfigureService(); _s3Uploader = services.GetRequiredService <IS3Uploader>(); }
public GithubUploader(string login, string token, IS3Uploader s3Uploader) { if (s3Uploader == null) throw new ArgumentNullException("s3Uploader"); if (string.IsNullOrEmpty(login)) throw new ArgumentNullException("login"); if (string.IsNullOrEmpty(token)) throw new ArgumentNullException("token"); _login = login; _token = token; _s3Uploader = s3Uploader; }
public Tv24EpgGenerator(IHttpFactoryClient httpClientFactory, IOptions <Tv24Config> configuration, IS3Uploader s3Uploader) { _httpClientFactory = httpClientFactory; _baseUrl = configuration.Value.BaseUrl; _mediaGallery = configuration.Value.MediaGallery; _channelsGroups = configuration.Value.Groups; _numOfDays = configuration.Value.NumOfDaysToGenerate; _s3Uploader = s3Uploader; }