Skip to content

Commit 35ebecc

Browse files
Code cleaning (#13)
1 parent a99c513 commit 35ebecc

File tree

8 files changed

+10
-31
lines changed

8 files changed

+10
-31
lines changed

src/Peppermint.ReverseProxy/Configuration/DefaultLoggingExtensions.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static class DefaultLoggingExtensions
1414
/// <param name="config">The configuration.</param>
1515
/// <returns></returns>
1616
public static IServiceCollection AddDefaultLogging(
17-
this IServiceCollection services,
17+
this IServiceCollection services,
1818
IConfiguration config)
1919
{
2020
// Logging
@@ -28,4 +28,4 @@ public static IServiceCollection AddDefaultLogging(
2828
return services;
2929
}
3030
}
31-
}
31+
}

src/Peppermint.ReverseProxy/Configuration/ReverseProxyConfiguration.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ public static IConfiguration Configure()
1616
.AddJsonFile(Settings.AppSettingsFileName, optional: false, reloadOnChange: true)
1717
.Build();
1818
}
19-
}
19+
}

src/Peppermint.ReverseProxy/Configuration/YarpExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ public static IServiceCollection AddYarpReverseProxy(
2424
return services;
2525
}
2626
}
27-
}
27+
}

src/Peppermint.ReverseProxy/Program.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
using Peppermint.ReverseProxy;
21
using Peppermint.ReverseProxy.Configuration;
32
using Peppermint.ReverseProxy.Resources;
4-
using Serilog;
53
using System.Runtime.CompilerServices;
64

75
[assembly: InternalsVisibleTo("Peppermint.ReverseProxy.Tests")]
6+
87
namespace Peppermint.ReverseProxy
98
{
109
/// <summary>
@@ -41,4 +40,4 @@ private static void Main(string[] args)
4140
app.Run();
4241
}
4342
}
44-
}
43+
}

src/Peppermint.ReverseProxy/Properties/launchSettings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
}
2626
}
2727
}
28-
}
28+
}

tests/Peppermint.ReverseProxy.Tests/Abstract/BaseReverseProxyTest.cs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
using Microsoft.AspNetCore.Mvc.Testing;
2-
using System;
3-
using System.Collections.Generic;
4-
using System.Linq;
5-
using System.Text;
6-
using System.Threading.Tasks;
72

83
namespace Peppermint.ReverseProxy.Tests.Abstract
94
{
@@ -22,4 +17,4 @@ protected BaseReverseProxyTest()
2217
_factory = new WebApplicationFactory<Program>();
2318
}
2419
}
25-
}
20+
}

tests/Peppermint.ReverseProxy.Tests/CountryTest.cs

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22
using NFluent;
33
using Peppermint.ReverseProxy.Tests.Abstract;
44
using System;
5-
using System.Collections.Generic;
65
using System.Linq;
76
using System.Net;
8-
using System.Text;
9-
using System.Threading.Tasks;
107

118
namespace Peppermint.ReverseProxy.Tests
129
{
@@ -34,6 +31,5 @@ public void GivenCountryWhenCallApiThenReturnFrenchRepublic()
3431
Check.That(response.Content.ReadAsStringAsync().Result)
3532
.Contains("French Republic");
3633
}
37-
3834
}
39-
}
35+
}

tests/Peppermint.ReverseProxy.Tests/StartupTests.cs

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
1-
using Microsoft.AspNetCore.Mvc.Testing;
2-
using Microsoft.VisualStudio.TestPlatform.TestHost;
1+
using Microsoft.VisualStudio.TestTools.UnitTesting;
32
using NFluent;
4-
using Peppermint.ReverseProxy;
5-
using System.Net.Http;
6-
using System;
7-
using Microsoft.AspNetCore.TestHost;
8-
using Microsoft.AspNetCore.Hosting;
9-
using System.Net;
10-
using Microsoft.AspNetCore.Http;
11-
using Peppermint.ReverseProxy.Configuration;
123
using Peppermint.ReverseProxy.Tests.Abstract;
13-
using Microsoft.VisualStudio.TestTools.UnitTesting;
144

155
namespace Peppermint.ReverseProxy.Tests
166
{
17-
187
/// <summary>
198
/// Startup tests.
209
/// </summary>

0 commit comments

Comments
 (0)