public void SetUp() { _restriction = new HeaderRestriction("field", "value", CaseInsensitivePlainComparer.Instance); _request = MockRepository.GenerateMock <HttpRequestBase>(); _request.Stub(arg => arg.Headers).Return(new NameValueCollection { { "field", "value" } }); }
public void SetUp() { _restriction = new HeaderRestriction("field", "value", CaseInsensitivePlainComparer.Instance); _request = MockRepository.GenerateMock<HttpRequestBase>(); _request.Stub(arg => arg.Headers).Return(new NameValueCollection { { "field", "value1" } }); }
public void SetUp() { _restriction = new HeaderRestriction("field", "value", CaseSensitiveRegexComparer.Instance); }
public void SetUp() { _restriction1 = new HeaderRestriction("field1", "value1", CaseSensitiveRegexComparer.Instance); _restriction2 = new HeaderRestriction("field2", "value2", CaseSensitiveRegexComparer.Instance); }