Example #1
0
        public HttpCommand(ILogger <HttpCommand> logger, IHttpAuthProvider httpAuthService, HttpMethod httpMethod, TestCommand testCommand)
        {
            this.logger          = logger.VerifyIsSet(nameof(logger));
            this.httpMethod      = httpMethod.VerifyIsSet(nameof(httpMethod));
            this.testCommand     = testCommand.VerifyIsSet(nameof(testCommand));
            this.httpAuthService = httpAuthService.VerifyIsSet(nameof(httpAuthService));

            this.httpClient = new HttpClient();
        }
Example #2
0
 public TestCommandFactory(ILogger <HttpCommand> loggerFactory, IHttpAuthProvider httpAuthService)
 {
     this.loggerFactory   = loggerFactory.VerifyIsSet(nameof(loggerFactory));
     this.httpAuthService = httpAuthService.VerifyIsSet(nameof(httpAuthService));
 }