public D8ErrorTicketManager1Facts() { _creds = UploaderConfigFile.Parse(UploaderCfg.Localhost); using (var scope = Repo2IoC.BeginScope()) { _client = scope.Resolve <IR2RestClient>(); _sut = scope.Resolve <IErrorTicketManager>(); } }
public R2ClientPatchPingFacts() { //_creds = UploaderConfigFile.Parse(UploaderCfg.KEY); _creds = DownloaderConfigFile.Parse(Downloader1Cfg.KEY); using (var scope = Repo2IoC.BeginScope()) { _sut = scope.Resolve <IR2RestClient>(); _pings = scope.Resolve <IPingManager>(); } }
public ResilientClient1CrudFacts() { _fke = new FakeFactory(); _creds = UploaderConfigFile.Parse(UploaderCfg.Localhost); using (var scope = UploaderIoC.BeginScope()) { _pkgs = scope.Resolve <IRemotePackageManager>(); _parts = scope.Resolve <IPackagePartManager>(); _sut = scope.Resolve <IR2RestClient>(); } }
public D8PackageUploaderFacts() { _creds = UploaderConfigFile.Parse(UploaderCfg.Localhost); using (var scope = UploaderIoC.BeginScope()) { _client = scope.Resolve <IR2RestClient>(); _sut = scope.Resolve <IPackageUploader>(); _parts = scope.Resolve <IPackagePartManager>(); _pkgs = scope.Resolve <IRemotePackageManager>(); } }
internal static IContainer Build(R2Credentials r2Credentials) { var b = new ContainerBuilder(); b.RegisterInstance(r2Credentials); b.Multi <GetValidUploaderCredentials>(); b.Multi <CrappyConnectionRetryer>(); b.Multi <IR2RestClient, ResilientClient1>(); b.Multi <IR2PreUploadChecker, D8PreUploadChecker1>(); return(b.Build()); }
public GetValidUploaderCredentials(R2Credentials r2Credentials) { _creds = r2Credentials; }