Exemplo n.º 1
0
 public GlobalExceptionHandlerTests()
 {
     _logger             = Substitute.For <MockLogger <GlobalExceptionHandler> >();
     _requestDelegate    = Substitute.For <RequestDelegate>();
     _httpResponseHelper = Substitute.For <IHttpResponseHelper>();
     _handler            = new GlobalExceptionHandler(_requestDelegate, _logger, _httpResponseHelper);
 }
Exemplo n.º 2
0
 public HttpClient(EsendexCredentials credentials, Uri uri, IHttpRequestHelper httpRequestHelper, IHttpResponseHelper httpResponseHelper)
 {
     HttpRequestHelper = httpRequestHelper;
     HttpResponseHelper = httpResponseHelper;
     Credentials = credentials;
     Uri = uri;
 }
Exemplo n.º 3
0
 public HttpClient(EsendexCredentials credentials, Uri uri, IHttpRequestHelper httpRequestHelper, IHttpResponseHelper httpResponseHelper)
 {
     HttpRequestHelper  = httpRequestHelper;
     HttpResponseHelper = httpResponseHelper;
     Credentials        = credentials;
     Uri = uri;
 }
Exemplo n.º 4
0
 public GlobalExceptionHandler(RequestDelegate nextHandler,
                               ILogger <GlobalExceptionHandler> logger,
                               IHttpResponseHelper httpResponseHelper)
 {
     _logger             = logger;
     _httpResponseHelper = httpResponseHelper;
     _nextHandler        = nextHandler;
 }
Exemplo n.º 5
0
 public ToDoController(IToDoService toDoService,
     IHttpResponseHelper<ToDo, Guid> responseHelper)
 {
     _toDoService = toDoService;
     _responseHelper = responseHelper;
 }
Exemplo n.º 6
0
 public TvShowWebDownloader(IHttpHandler httpHandler, IHttpResponseHelper responseHelper)
 {
     _httpHandler    = httpHandler ?? throw new ArgumentNullException(nameof(httpHandler));
     _responseHelper = responseHelper ?? throw new ArgumentException(nameof(responseHelper));
 }
Exemplo n.º 7
0
 public TvShowDownloader(ITvShowWebDownloader seriesWebDownloader, ITvShowMapper seriesMapper, IHttpResponseHelper responseHelper)
 {
     _tvShowWebDownloader = seriesWebDownloader ?? throw new ArgumentNullException(nameof(seriesWebDownloader));
     _seriesMapper        = seriesMapper ?? throw new ArgumentNullException(nameof(seriesMapper));
 }