@@ -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 {
0 commit comments