Skip to content

Commit 0c3535d

Browse files
committed
Bump version
1 parent 7dbcda2 commit 0c3535d

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

src/EmbedIO/EmbedIO.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
<PropertyGroup>
44
<Description>A tiny, cross-platform, module based, MIT-licensed web server. Supporting NET Framework, Net Core, and Mono.</Description>
5-
<Copyright>Copyright © Unosquare 2013-2019</Copyright>
5+
<Copyright>Copyright © Unosquare 2013-2020</Copyright>
66
<AssemblyTitle>EmbedIO Web Server</AssemblyTitle>
77
<Authors>Unosquare, and Contributors to EmbedIO</Authors>
88
<TargetFrameworks>netstandard2.0</TargetFrameworks>
99
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1010
<AssemblyName>EmbedIO</AssemblyName>
1111
<PackageId>EmbedIO</PackageId>
1212
<CodeAnalysisRuleSet>..\..\StyleCop.Analyzers.ruleset</CodeAnalysisRuleSet>
13-
<Version>3.1.3</Version>
13+
<Version>3.3.0</Version>
1414
<Product>EmbedIO</Product>
1515
<Company>Unosquare</Company>
1616
<PackageLicenseFile>LICENSE</PackageLicenseFile>

test/EmbedIO.Tests/IPBanningModuleTest.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ private HttpRequestMessage GetEmptyRequest() =>
3030
private HttpRequestMessage GetUnauthorizedRequest() =>
3131
new HttpRequestMessage(HttpMethod.Get, $"{WebServerUrl}/api/unauthorized");
3232

33-
private IPAddress LocalHost { get; } = IPAddress.Parse("127.0.0.1");
33+
private IPAddress Localhost { get; } = IPAddress.Parse("127.0.0.1");
3434

3535
[Test]
3636
public async Task RequestFailRegex_ReturnsForbidden()
3737
{
38-
IPBanningModule.TryUnbanIP(LocalHost);
38+
IPBanningModule.TryUnbanIP(Localhost);
3939

4040
_ = await Client.SendAsync(GetNotFoundRequest());
4141
_ = await Client.SendAsync(GetUnauthorizedRequest());
@@ -51,12 +51,12 @@ public async Task RequestFailRegex_ReturnsForbidden()
5151
[Test]
5252
public async Task BanIpMinutes_ReturnsForbidden()
5353
{
54-
IPBanningModule.TryUnbanIP(LocalHost);
54+
IPBanningModule.TryUnbanIP(Localhost);
5555

5656
var response = await Client.SendAsync(GetNotFoundRequest());
5757
Assert.AreEqual(HttpStatusCode.NotFound, response.StatusCode, "Status Code NotFound");
5858

59-
IPBanningModule.TryBanIP(LocalHost, 10);
59+
IPBanningModule.TryBanIP(Localhost, 10);
6060

6161
response = await Client.SendAsync(GetNotFoundRequest());
6262
Assert.AreEqual(HttpStatusCode.Forbidden, response.StatusCode, "Status Code Forbidden");
@@ -65,12 +65,12 @@ public async Task BanIpMinutes_ReturnsForbidden()
6565
[Test]
6666
public async Task BanIpTimeSpan_ReturnsForbidden()
6767
{
68-
IPBanningModule.TryUnbanIP(LocalHost);
68+
IPBanningModule.TryUnbanIP(Localhost);
6969

7070
var response = await Client.SendAsync(GetNotFoundRequest());
7171
Assert.AreEqual(HttpStatusCode.NotFound, response.StatusCode, "Status Code NotFound");
7272

73-
IPBanningModule.TryBanIP(LocalHost, TimeSpan.FromMinutes(10));
73+
IPBanningModule.TryBanIP(Localhost, TimeSpan.FromMinutes(10));
7474

7575
response = await Client.SendAsync(GetNotFoundRequest());
7676
Assert.AreEqual(HttpStatusCode.Forbidden, response.StatusCode, "Status Code Forbidden");
@@ -79,12 +79,12 @@ public async Task BanIpTimeSpan_ReturnsForbidden()
7979
[Test]
8080
public async Task BanIpDateTime_ReturnsForbidden()
8181
{
82-
IPBanningModule.TryUnbanIP(LocalHost);
82+
IPBanningModule.TryUnbanIP(Localhost);
8383

8484
var response = await Client.SendAsync(GetNotFoundRequest());
8585
Assert.AreEqual(HttpStatusCode.NotFound, response.StatusCode, "Status Code NotFound");
8686

87-
IPBanningModule.TryBanIP(LocalHost, DateTime.Now.AddMinutes(10));
87+
IPBanningModule.TryBanIP(Localhost, DateTime.Now.AddMinutes(10));
8888

8989
response = await Client.SendAsync(GetNotFoundRequest());
9090
Assert.AreEqual(HttpStatusCode.Forbidden, response.StatusCode, "Status Code Forbidden");
@@ -93,7 +93,7 @@ public async Task BanIpDateTime_ReturnsForbidden()
9393
[Test]
9494
public async Task RequestFailRegex_UnbanIp_ReturnsNotFound()
9595
{
96-
IPBanningModule.TryUnbanIP(LocalHost);
96+
IPBanningModule.TryUnbanIP(Localhost);
9797

9898
_ = await Client.SendAsync(GetNotFoundRequest());
9999
_ = await Client.SendAsync(GetNotFoundRequest());
@@ -117,7 +117,7 @@ public async Task RequestFailRegex_UnbanIp_ReturnsNotFound()
117117
[Test]
118118
public async Task MaxRps_ReturnsForbidden()
119119
{
120-
IPBanningModule.TryUnbanIP(LocalHost);
120+
IPBanningModule.TryUnbanIP(Localhost);
121121

122122
foreach (var _ in Enumerable.Range(0, 100))
123123
{

test/EmbedIO.Tests/TestObjects/TestController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void GetUnauthorized() =>
7272
throw HttpException.Unauthorized();
7373

7474
private static Person CheckPerson(int id)
75-
=>PeopleRepository.Database.FirstOrDefault(p => p.Key == id)
75+
=> PeopleRepository.Database.FirstOrDefault(p => p.Key == id)
7676
?? throw HttpException.NotFound();
7777
}
7878
}

0 commit comments

Comments
 (0)