Esempio n. 1
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>();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TrapSendServer"/> class.
 /// FOR TESTING PURPOSE!
 /// </summary>
 /// <param name="mockPingManager">
 /// The mock Ping Manager.
 /// </param>
 public TrapSendServer(IPingManager mockPingManager)
 {
     pingManager = mockPingManager;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TrapSendServer"/> class.
 /// </summary>
 public TrapSendServer()
 {
     pingManager = new PingManager();
 }