mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 16:18:14 +08:00
Removed unused usings, removed empty spaces, removed tons os warnings (#903)
This commit is contained in:
@ -3,7 +3,6 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Ocelot.UnitTests.Middleware
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.AspNetCore.Hosting.Internal;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
@ -14,6 +13,7 @@ namespace Ocelot.UnitTests.Middleware
|
||||
using Ocelot.Middleware;
|
||||
using Ocelot.Middleware.Pipeline;
|
||||
using Shouldly;
|
||||
using System.Collections.Generic;
|
||||
using TestStack.BDDfy;
|
||||
using Xunit;
|
||||
|
||||
@ -79,8 +79,6 @@ namespace Ocelot.UnitTests.Middleware
|
||||
del.Invoke(_downstreamContext);
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void ThenTheFuncIsInThePipeline()
|
||||
{
|
||||
_counter.ShouldBe(1);
|
||||
@ -103,7 +101,7 @@ namespace Ocelot.UnitTests.Middleware
|
||||
private readonly OcelotRequestDelegate _next;
|
||||
|
||||
public MultiParametersInvokeMiddleware(OcelotRequestDelegate next)
|
||||
:base(new FakeLogger())
|
||||
: base(new FakeLogger())
|
||||
{
|
||||
_next = next;
|
||||
}
|
||||
@ -115,7 +113,7 @@ namespace Ocelot.UnitTests.Middleware
|
||||
}
|
||||
}
|
||||
|
||||
class FakeLogger : IOcelotLogger
|
||||
internal class FakeLogger : IOcelotLogger
|
||||
{
|
||||
public void LogCritical(string message, Exception exception)
|
||||
{
|
||||
|
Reference in New Issue
Block a user