mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 01:58:15 +08:00
http error code tests and docs
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
using Shouldly;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
|
||||
@ -38,6 +39,14 @@
|
||||
error.ShouldBeOfType<RequestCanceledError>();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void should_return_ConnectionToDownstreamServiceError()
|
||||
{
|
||||
var error = _mapper.Map(new HttpRequestException());
|
||||
|
||||
error.ShouldBeOfType<ConnectionToDownstreamServiceError>();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void should_return_request_canceled_for_subtype()
|
||||
{
|
||||
|
Reference in New Issue
Block a user