public void SetUp()
 {
     _restriction = new RefererUrlQueryRestriction("?query", CaseInsensitivePlainComparer.Instance);
     _request     = MockRepository.GenerateMock <HttpRequestBase>();
     _request.Stub(arg => arg.UrlReferrer).Return(new Uri("http://localhost/path?q"));
 }
Ejemplo n.º 2
0
 public void SetUp()
 {
     _restriction = new RefererUrlQueryRestriction("?query", CaseInsensitivePlainComparer.Instance);
 }
 public void SetUp()
 {
     _restriction = new RefererUrlQueryRestriction("?query", CaseInsensitivePlainComparer.Instance);
 }
Ejemplo n.º 4
0
 public void SetUp()
 {
     _restriction = new RefererUrlQueryRestriction("?query", CaseInsensitivePlainComparer.Instance);
     _request = MockRepository.GenerateMock<HttpRequestBase>();
     _request.Stub(arg => arg.UrlReferrer).Return(new Uri("http://localhost/path?q"));
 }