public void SetUp()
 {
     _generator             = new UnmatchedRestrictionsGenerator();
     _context               = MockRepository.GenerateMock <HttpContextBase>();
     _route                 = new Route.Routing.Route("name", Guid.NewGuid(), "relative");
     _httpRuntime           = MockRepository.GenerateMock <IHttpRuntime>();
     _matchedRestrictions   = new[] { new UrlRelativePathRestriction("", CaseInsensitivePlainComparer.Instance, _httpRuntime) };
     _unmatchedRestrictions = new IRestriction[] { new HeaderRestriction <ContentEncodingHeader>("Content-Encoding", (Func <string, IEnumerable <ContentEncodingHeader> >)ContentEncodingHeader.ParseMany, header => false) };
     _routeMatchResults     = new[] { new RouteMatchResult(_route, MatchResult.RouteNotMatched(_matchedRestrictions, _unmatchedRestrictions)) };
 }
 public void SetUp()
 {
     _generator             = new UnmatchedRestrictionsGenerator();
     _context               = MockRepository.GenerateMock <HttpContextBase>();
     _route                 = new Route.Routing.Route("name", Guid.NewGuid(), "relative");
     _httpRuntime           = MockRepository.GenerateMock <IHttpRuntime>();
     _matchedRestrictions   = new[] { new UrlRelativePathRestriction("", CaseInsensitivePlainComparer.Instance, _httpRuntime) };
     _unmatchedRestrictions = new[] { new MethodRestriction("GET") };
     _routeMatchResults     = new[] { new RouteMatchResult(_route, MatchResult.RouteNotMatched(_matchedRestrictions, _unmatchedRestrictions)) };
 }