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>(); } }
/// <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; }
/// <summary> /// Initializes a new instance of the <see cref="TrapSendServer"/> class. /// </summary> public TrapSendServer() { pingManager = new PingManager(); }