mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 15:50:49 +08:00 
			
		
		
		
	Removed unused usings, removed empty spaces, removed tons os warnings (#903)
This commit is contained in:
		@@ -1,16 +1,16 @@
 | 
			
		||||
namespace Ocelot.UnitTests.Logging
 | 
			
		||||
{
 | 
			
		||||
    using Moq;
 | 
			
		||||
    using Xunit;
 | 
			
		||||
    using Ocelot.Logging;
 | 
			
		||||
    using Microsoft.Extensions.Logging;
 | 
			
		||||
    using Moq;
 | 
			
		||||
    using Ocelot.Infrastructure.RequestData;
 | 
			
		||||
    using Ocelot.Logging;
 | 
			
		||||
    using System;
 | 
			
		||||
    using Xunit;
 | 
			
		||||
 | 
			
		||||
    public class AspDotNetLoggerTests
 | 
			
		||||
    {
 | 
			
		||||
        private readonly Mock<ILogger<object>> _coreLogger;
 | 
			
		||||
        private readonly AspDotNetLogger _logger; 
 | 
			
		||||
        private readonly AspDotNetLogger _logger;
 | 
			
		||||
        private Mock<IRequestScopedDataRepository> _repo;
 | 
			
		||||
        private readonly string _b;
 | 
			
		||||
        private readonly string _a;
 | 
			
		||||
@@ -72,7 +72,7 @@ namespace Ocelot.UnitTests.Logging
 | 
			
		||||
                x => x.Log(
 | 
			
		||||
                    expectedLogLevel,
 | 
			
		||||
                    It.IsAny<EventId>(),
 | 
			
		||||
                    It.Is<object>(o => o.ToString() == expected), 
 | 
			
		||||
                    It.Is<object>(o => o.ToString() == expected),
 | 
			
		||||
                    It.IsAny<Exception>(),
 | 
			
		||||
                    It.IsAny<Func<object, Exception, string>>()), Times.Once);
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
@@ -1,13 +1,11 @@
 | 
			
		||||
using Ocelot.Logging;
 | 
			
		||||
using Moq;
 | 
			
		||||
using TestStack.BDDfy;
 | 
			
		||||
using Butterfly.Client.Tracing;
 | 
			
		||||
using Ocelot.Requester;
 | 
			
		||||
using Xunit;
 | 
			
		||||
using Ocelot.Middleware;
 | 
			
		||||
using Microsoft.AspNetCore.Http;
 | 
			
		||||
using System;
 | 
			
		||||
using Microsoft.Extensions.DependencyInjection;
 | 
			
		||||
using Moq;
 | 
			
		||||
using Ocelot.Logging;
 | 
			
		||||
using Ocelot.Middleware;
 | 
			
		||||
using System;
 | 
			
		||||
using TestStack.BDDfy;
 | 
			
		||||
using Xunit;
 | 
			
		||||
 | 
			
		||||
namespace Ocelot.UnitTests.Logging
 | 
			
		||||
{
 | 
			
		||||
@@ -63,7 +61,7 @@ namespace Ocelot.UnitTests.Logging
 | 
			
		||||
                .BDDfy();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
       [Fact]
 | 
			
		||||
        [Fact]
 | 
			
		||||
        public void should_trace_middleware_started()
 | 
			
		||||
        {
 | 
			
		||||
            this.Given(_ => GivenAMiddlewareName())
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user