Пример #1
0
        public void ModifyAndSet_Throws_Argument_Null_Exception_For_Builder()
        {
            IHttpResponseMessageBuilder builder = null;
            Action testCode = () => builder.ConfigureResponse(req => req);

            testCode.Should().Throw <ArgumentNullException>();
        }
 public InterceptorManager(ILogger logger, IHttpResponseMessageBuilder httpResponseMessageBuilder,
                           IOnPremiseRequestInterceptor requestInterceptor = null, IOnPremiseResponseInterceptor responseInterceptor = null)
 {
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _httpResponseMessageBuilder = httpResponseMessageBuilder ?? throw new ArgumentNullException(nameof(httpResponseMessageBuilder));
     _requestInterceptor         = requestInterceptor;
     _responseInterceptor        = responseInterceptor;
 }
Пример #3
0
 public ClientController(IBackendCommunication backendCommunication, ILogger logger, ILinkRepository linkRepository, IRequestLogger requestLogger,
                         IHttpResponseMessageBuilder httpResponseMessageBuilder, IOnPremiseRequestBuilder onPremiseRequestBuilder, IPathSplitter pathSplitter,
                         ITraceManager traceManager)
 {
     _backendCommunication = backendCommunication;
     _logger                     = logger;
     _linkRepository             = linkRepository;
     _requestLogger              = requestLogger;
     _httpResponseMessageBuilder = httpResponseMessageBuilder;
     _onPremiseRequestBuilder    = onPremiseRequestBuilder;
     _pathSplitter               = pathSplitter;
     _traceManager               = traceManager;
 }
Пример #4
0
 public ClientController(IBackendCommunication backendCommunication, ILogger logger, ILinkRepository linkRepository, IRequestLogger requestLogger,
                         IHttpResponseMessageBuilder httpResponseMessageBuilder, IOnPremiseRequestBuilder onPremiseRequestBuilder, IPathSplitter pathSplitter,
                         ITraceManager traceManager, IInterceptorManager interceptorManager)
 {
     _backendCommunication = backendCommunication ?? throw new ArgumentNullException(nameof(backendCommunication));
     _logger                     = logger;
     _linkRepository             = linkRepository ?? throw new ArgumentNullException(nameof(linkRepository));
     _requestLogger              = requestLogger ?? throw new ArgumentNullException(nameof(requestLogger));
     _httpResponseMessageBuilder = httpResponseMessageBuilder ?? throw new ArgumentNullException(nameof(httpResponseMessageBuilder));
     _onPremiseRequestBuilder    = onPremiseRequestBuilder ?? throw new ArgumentNullException(nameof(onPremiseRequestBuilder));
     _pathSplitter               = pathSplitter ?? throw new ArgumentNullException(nameof(pathSplitter));
     _traceManager               = traceManager ?? throw new ArgumentNullException(nameof(traceManager));
     _interceptorManager         = interceptorManager ?? throw new ArgumentNullException(nameof(interceptorManager));
 }
 public RepairController()
 {
     _repairBL = new RepairBL();
     _httpResponseMessageBuilder = new HttpResponseMessageBuilder();
 }
 public PartsController()
 {
     _partBL = new PartBL();
     _httpResponseMessageBuilder = new HttpResponseMessageBuilder();
 }
Пример #7
0
 public LogsController()
 {
     _logsBL = new LogsBL();
     _httpResponseMessageBuilder = new HttpResponseMessageBuilder();
 }
 public CustomerController()
 {
     _customerBL = new CustomerBL();
     _httpResponseMessageBuilder = new HttpResponseMessageBuilder();
 }
Пример #9
0
 public InvoiceController()
 {
     _invoiceBL = new InvoiceBL();
     _httpResponseMessageBuilder = new HttpResponseMessageBuilder();
 }