1. Fabio Maulo
  2. AbsoluteRouter

Commits

Fabio Maulo  committed 49563c7

Moved class in its namespace

  • Participants
  • Parent commits a0b87bb
  • Branches default

Comments (0)

Files changed (3)

File HunabKu.MvcAbsoluteRouter/HunabKu.MvcAbsoluteRouter.csproj

View file
     <Reference Include="System.Web.Routing" />
   </ItemGroup>
   <ItemGroup>
+    <Compile Include="ParsedRoutePattern.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

File HunabKu.MvcAbsoluteRouter/ParsedRoutePattern.cs

View file
+using System;
+
+namespace HunabKu.MvcAbsoluteRouter
+{
+	public class ParsedRoutePattern
+	{
+		private ParsedRoutePattern(string pattern)
+		{
+			if (pattern == null)
+			{
+				throw new ArgumentNullException("pattern");
+			}
+		}
+
+		public static ParsedRoutePattern Parse(string pattern)
+		{
+			return new ParsedRoutePattern(pattern);
+		}
+	}
+}

File HunabKu.MvcAbsoluteRouterTests/ParsedRoutePatternTests/ConstructorsTests.cs

View file
 using System;
+using HunabKu.MvcAbsoluteRouter;
 using NUnit.Framework;
 using SharpTestsEx;
 
 			Executing.This(() => ParsedRoutePattern.Parse(null)).Should().Throw<ArgumentNullException>();
 		}
 	}
-
-	public class ParsedRoutePattern
-	{
-		private ParsedRoutePattern(string pattern)
-		{
-			if (pattern == null)
-			{
-				throw new ArgumentNullException("pattern");
-			}
-		}
-
-		public static ParsedRoutePattern Parse(string pattern)
-		{
-			return new ParsedRoutePattern(pattern);
-		}
-	}
 }