mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 15:58:16 +08:00
Feat/monorepo (#734)
* copied everything from repos back to ocelot repo * added src projects to sln * removed all test projects that have no tests * added all test projects to sln * removed test not on master * merged unit tests * merged acceptance tests * merged integration tests * fixed namepaces * build script creates packages for all projects * updated docs to make sure no references to external repos that we will remove * +semver: breaking
This commit is contained in:
27
test/Ocelot.UnitTests/Polly/PollyQoSProviderTests.cs
Normal file
27
test/Ocelot.UnitTests/Polly/PollyQoSProviderTests.cs
Normal file
@ -0,0 +1,27 @@
|
||||
namespace Ocelot.UnitTests.Polly
|
||||
{
|
||||
using Moq;
|
||||
using Ocelot.Configuration.Builder;
|
||||
using Ocelot.Logging;
|
||||
using Provider.Polly;
|
||||
using Shouldly;
|
||||
using Xunit;
|
||||
|
||||
public class PollyQoSProviderTests
|
||||
{
|
||||
[Fact]
|
||||
public void should_build()
|
||||
{
|
||||
var options = new QoSOptionsBuilder()
|
||||
.WithTimeoutValue(100)
|
||||
.WithExceptionsAllowedBeforeBreaking(1)
|
||||
.WithDurationOfBreak(200)
|
||||
.Build();
|
||||
var reRoute = new DownstreamReRouteBuilder().WithQosOptions(options)
|
||||
.Build();
|
||||
var factory = new Mock<IOcelotLoggerFactory>();
|
||||
var pollyQoSProvider = new PollyQoSProvider(reRoute, factory.Object);
|
||||
pollyQoSProvider.CircuitBreaker.ShouldNotBeNull();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user