Esempio n. 1
0
        //Public for use in PowerShell
        public static PrtgClient Initialize_Client(IWebResponse response)
        {
            var webClient = new MockWebClient(response);

            var client = new PrtgClient("prtg.example.com", "username", "12345678", AuthMode.PassHash, webClient);

            return(client);
        }
Esempio n. 2
0
 public MockRetryWebClient(IWebResponse response, bool synchronous)
 {
     realWebClient    = new MockWebClient(response);
     this.synchronous = synchronous;
 }