Exemplo n.º 1
0
 public D8ErrorTicketManager1Facts()
 {
     _creds = UploaderConfigFile.Parse(UploaderCfg.Localhost);
     using (var scope = Repo2IoC.BeginScope())
     {
         _client = scope.Resolve <IR2RestClient>();
         _sut    = scope.Resolve <IErrorTicketManager>();
     }
 }
Exemplo n.º 2
0
 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>();
     }
 }
Exemplo n.º 3
0
 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>();
     }
 }
Exemplo n.º 4
0
 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>();
     }
 }
Exemplo n.º 5
0
        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());
        }
Exemplo n.º 6
0
 public GetValidUploaderCredentials(R2Credentials r2Credentials)
 {
     _creds = r2Credentials;
 }