Esempio n. 1
0
 public void SetUp()
 {
     _httpRuntime = MockRepository.GenerateMock <IHttpRuntime>();
     _httpRuntime.Stub(arg => arg.AppDomainAppVirtualPath).Return("/virtual");
     _restriction = new UrlRelativePathRestriction("relative", CaseInsensitivePlainComparer.Instance, _httpRuntime);
     _request     = MockRepository.GenerateMock <HttpRequestBase>();
     _request.Stub(arg => arg.Url).Return(new Uri("http://localhost/virtual/relative"));
 }
 public void SetUp()
 {
     _httpRuntime = MockRepository.GenerateMock<IHttpRuntime>();
     _restriction = new UrlRelativePathRestriction("relative", CaseInsensitivePlainComparer.Instance, _httpRuntime);
 }
Esempio n. 3
0
 public void SetUp()
 {
     _httpRuntime = MockRepository.GenerateMock <IHttpRuntime>();
     _restriction = new UrlRelativePathRestriction("relative", CaseInsensitivePlainComparer.Instance, _httpRuntime);
 }
 public void SetUp()
 {
     _httpRuntime = MockRepository.GenerateMock<IHttpRuntime>();
     _httpRuntime.Stub(arg => arg.AppDomainAppVirtualPath).Return("/virtual");
     _restriction = new UrlRelativePathRestriction("relative", CaseInsensitivePlainComparer.Instance, _httpRuntime);
     _request = MockRepository.GenerateMock<HttpRequestBase>();
     _request.Stub(arg => arg.Url).Return(new Uri("http://localhost/virtual/r"));
 }