diff --git a/WebApiThrottle.StrongName/Properties/AssemblyInfo.cs b/WebApiThrottle.StrongName/Properties/AssemblyInfo.cs
index 3281469..be4e19a 100644
--- a/WebApiThrottle.StrongName/Properties/AssemblyInfo.cs
+++ b/WebApiThrottle.StrongName/Properties/AssemblyInfo.cs
@@ -1,5 +1,4 @@
using System.Reflection;
-using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
@@ -33,4 +32,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
\ No newline at end of file
diff --git a/WebApiThrottle.StrongName/WebApiThrottle.StrongName.csproj b/WebApiThrottle.StrongName/WebApiThrottle.StrongName.csproj
index c8c002a..702d255 100644
--- a/WebApiThrottle.StrongName/WebApiThrottle.StrongName.csproj
+++ b/WebApiThrottle.StrongName/WebApiThrottle.StrongName.csproj
@@ -36,13 +36,12 @@
WebApiThrottle.snk
-
- False
- ..\packages\Microsoft.Owin.3.0.1\lib\net45\Microsoft.Owin.dll
+
+ ..\packages\Microsoft.Owin.3.1.0\lib\net45\Microsoft.Owin.dll
+ True
-
- False
- ..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll
+
+ ..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll
False
@@ -75,6 +74,8 @@
+
+
diff --git a/WebApiThrottle.StrongName/app.config b/WebApiThrottle.StrongName/app.config
new file mode 100644
index 0000000..32f2c56
--- /dev/null
+++ b/WebApiThrottle.StrongName/app.config
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebApiThrottle.StrongName/packages.config b/WebApiThrottle.StrongName/packages.config
index 45e9e93..c2077d7 100644
--- a/WebApiThrottle.StrongName/packages.config
+++ b/WebApiThrottle.StrongName/packages.config
@@ -1,8 +1,9 @@
+
-
-
+
+
\ No newline at end of file
diff --git a/WebApiThrottle.Tests/IpAddressUtilTests.cs b/WebApiThrottle.Tests/IpAddressUtilTests.cs
index bd12ca7..46d3a7f 100644
--- a/WebApiThrottle.Tests/IpAddressUtilTests.cs
+++ b/WebApiThrottle.Tests/IpAddressUtilTests.cs
@@ -1,9 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using WebApiThrottle.Net;
+using WebApiThrottle.Net;
using Xunit;
namespace WebApiThrottle.Tests
@@ -13,57 +8,57 @@ public class IpAddressUtilTests
[Fact]
public void IsPrivateIpAddress_PrivateAddress_ReturnsTrue()
{
- bool result = IpAddressUtil.IsPrivateIpAddress("10.0.0.1");
+ var result = IpAddressUtil.IsPrivateIpAddress("10.0.0.1");
Assert.Equal(true, result);
}
[Fact]
- public void IsPrivateIpAddress_PublicAddress_ReturnsFalse()
+ public void IsPrivateIpAddress_PrivateAddressIpv6_ReturnsFalse()
{
- bool result = IpAddressUtil.IsPrivateIpAddress("8.8.8.8");
+ var result = IpAddressUtil.IsPrivateIpAddress("fd74:20cf:81a2::");
- Assert.Equal(false, result);
+ Assert.Equal(true, result);
}
-
+
[Fact]
- public void IsPrivateIpAddress_PublicAddressIpv6_ReturnsFalse()
+ public void IsPrivateIpAddress_PrivateAddressIpv6WithPort_ReturnsTrue()
{
- bool result = IpAddressUtil.IsPrivateIpAddress("2001:4860:4860::8888");
+ var result = IpAddressUtil.IsPrivateIpAddress("[fd74:20cf:81a2::]:5555");
- Assert.Equal(false, result);
+ Assert.Equal(true, result);
}
[Fact]
- public void IsPrivateIpAddress_PrivateAddressIpv6_ReturnsFalse()
+ public void IsPrivateIpAddress_PrivateAddressWithPort_ReturnsTrue()
{
- bool result = IpAddressUtil.IsPrivateIpAddress("fd74:20cf:81a2::");
+ var result = IpAddressUtil.IsPrivateIpAddress("10.0.0.1:5555");
Assert.Equal(true, result);
}
[Fact]
- public void IsPrivateIpAddress_PrivateAddressWithPort_ReturnsTrue()
+ public void IsPrivateIpAddress_PublicAddress_ReturnsFalse()
{
- bool result = IpAddressUtil.IsPrivateIpAddress("10.0.0.1:5555");
+ var result = IpAddressUtil.IsPrivateIpAddress("8.8.8.8");
- Assert.Equal(true, result);
+ Assert.Equal(false, result);
}
[Fact]
- public void IsPrivateIpAddress_PrivateAddressIpv6WithPort_ReturnsTrue()
+ public void IsPrivateIpAddress_PublicAddressIpv6_ReturnsFalse()
{
- bool result = IpAddressUtil.IsPrivateIpAddress("[fd74:20cf:81a2::]:5555");
+ var result = IpAddressUtil.IsPrivateIpAddress("2001:4860:4860::8888");
- Assert.Equal(true, result);
+ Assert.Equal(false, result);
}
[Fact]
public void IsPrivateIpAddress_PublicIpAddressWithInitialSpace_ReturnsFalse()
{
- bool result = IpAddressUtil.IsPrivateIpAddress(" 8.8.8.8");
+ var result = IpAddressUtil.IsPrivateIpAddress(" 8.8.8.8");
Assert.Equal(false, result);
}
}
-}
+}
\ No newline at end of file
diff --git a/WebApiThrottle.Tests/Properties/AssemblyInfo.cs b/WebApiThrottle.Tests/Properties/AssemblyInfo.cs
index 715dd00..071f98c 100644
--- a/WebApiThrottle.Tests/Properties/AssemblyInfo.cs
+++ b/WebApiThrottle.Tests/Properties/AssemblyInfo.cs
@@ -1,5 +1,4 @@
using System.Reflection;
-using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
@@ -33,4 +32,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
\ No newline at end of file
diff --git a/WebApiThrottle.Tests/WebApiThrottle.Tests.csproj b/WebApiThrottle.Tests/WebApiThrottle.Tests.csproj
index c54f60d..a311f07 100644
--- a/WebApiThrottle.Tests/WebApiThrottle.Tests.csproj
+++ b/WebApiThrottle.Tests/WebApiThrottle.Tests.csproj
@@ -1,5 +1,6 @@
+
Debug
@@ -11,6 +12,8 @@
WebApiThrottle.Tests
v4.5.2
512
+
+
true
@@ -39,36 +42,44 @@
- ..\packages\xunit.abstractions.2.0.0\lib\net35\xunit.abstractions.dll
- True
+ ..\packages\xunit.abstractions.2.0.1\lib\net35\xunit.abstractions.dll
-
- ..\packages\xunit.assert.2.1.0\lib\dotnet\xunit.assert.dll
- True
+
+ ..\packages\xunit.assert.2.3.0\lib\netstandard1.1\xunit.assert.dll
-
- ..\packages\xunit.extensibility.core.2.1.0\lib\dotnet\xunit.core.dll
- True
+
+ ..\packages\xunit.extensibility.core.2.3.0\lib\netstandard1.1\xunit.core.dll
-
- ..\packages\xunit.extensibility.execution.2.1.0\lib\net45\xunit.execution.desktop.dll
- True
+
+ ..\packages\xunit.extensibility.execution.2.3.0\lib\net452\xunit.execution.desktop.dll
-
-
-
{FBF3012B-08EF-408C-9E7D-175ABF286CB4}
WebApiThrottle.StrongName
+
+
+
+
+
+
+
+
+
+ Este proyecto hace referencia a los paquetes NuGet que faltan en este equipo. Use la restauración de paquetes NuGet para descargarlos. Para obtener más información, consulte http://go.microsoft.com/fwlink/?LinkID=322105. El archivo que falta es {0}.
+
+
+
+
+
@@ -25,7 +27,7 @@
-
+
@@ -35,7 +37,8 @@
-
+
@@ -54,14 +57,19 @@
-
+
-
-
+
+
-
+
\ No newline at end of file
diff --git a/WebApiThrottle.WebApiDemo/WebApiThrottle.WebApiDemo.csproj b/WebApiThrottle.WebApiDemo/WebApiThrottle.WebApiDemo.csproj
index e480005..f1bdffe 100644
--- a/WebApiThrottle.WebApiDemo/WebApiThrottle.WebApiDemo.csproj
+++ b/WebApiThrottle.WebApiDemo/WebApiThrottle.WebApiDemo.csproj
@@ -1,7 +1,7 @@
-
-
+
+
Debug
@@ -24,6 +24,7 @@
+
true
@@ -43,14 +44,12 @@
4
-
- ..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.2\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll
- True
+
+ ..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.7\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll
-
- ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll
- True
+
+ ..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll
@@ -148,10 +147,10 @@
- This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+ Este proyecto hace referencia a los paquetes NuGet que faltan en este equipo. Use la restauración de paquetes NuGet para descargarlos. Para obtener más información, consulte http://go.microsoft.com/fwlink/?LinkID=322105. El archivo que falta es {0}.
-
-
+
+