コード例 #1
0
 public void SetUp()
 {
     _restriction = new RefererUrlHostRestriction("host", CaseInsensitivePlainComparer.Instance);
     _request     = MockRepository.GenerateMock <HttpRequestBase>();
     _request.Stub(arg => arg.UrlReferrer).Return(new Uri("http://localhost"));
 }
コード例 #2
0
 public void SetUp()
 {
     _restriction = new RefererUrlHostRestriction("host", CaseInsensitivePlainComparer.Instance);
 }
コード例 #3
0
 public void SetUp()
 {
     _restriction = new RefererUrlHostRestriction("host", CaseInsensitivePlainComparer.Instance);
 }
コード例 #4
0
 public void SetUp()
 {
     _restriction = new RefererUrlHostRestriction("host", CaseInsensitivePlainComparer.Instance);
     _request = MockRepository.GenerateMock<HttpRequestBase>();
     _request.Stub(arg => arg.UrlReferrer).Return(new Uri("http://localhost"));
 }