Esempio n. 1
0
            public void SetUp()
            {
                Func<Uri, bool> matchDelegate = uri => true;

                _restriction1 = new UrlRestriction(matchDelegate);
                _restriction2 = new UrlRestriction(matchDelegate);
            }
            public void SetUp()
            {
                Func <Uri, bool> matchDelegate = uri => true;

                _restriction1 = new UrlRestriction(matchDelegate);
                _restriction2 = new UrlRestriction(matchDelegate);
            }
        public DownloadSettings(int depth, UrlRestriction restriction, List <string> resourceExtensions)
        {
            if (depth < 0)
            {
                throw new ArgumentOutOfRangeException(nameof(depth), $"{nameof(depth)} must be at least 0.");
            }

            this.Depth              = depth;
            this.Restriction        = restriction;
            this.ResourceExtensions = resourceExtensions ?? throw new ArgumentNullException(nameof(resourceExtensions));
        }
Esempio n. 4
0
 public void SetUp()
 {
     _restriction = new UrlRestriction(uri => true);
     _request = MockRepository.GenerateMock<HttpRequestBase>();
 }
Esempio n. 5
0
 public void SetUp()
 {
     _restriction1 = new UrlRestriction(uri => true);
     _restriction2 = new UrlRestriction(uri => true);
 }
 public void SetUp()
 {
     _restriction = new UrlRestriction(uri => false);
     _request     = MockRepository.GenerateMock <HttpRequestBase>();
 }
 public void SetUp()
 {
     _restriction1 = new UrlRestriction(uri => true);
     _restriction2 = new UrlRestriction(uri => true);
 }