public void Add_WithSecureUrlParam_ShouldIncramentTotalByOne_WhenPassedValidSecureUrlInstance() {
            // Arrange
            var collection = new SecureUrlCollection();
            var secureUrl = new SecureUrl();

            // Act 
            collection.Add(secureUrl);

            // Assert
            Assert.NotEmpty(collection);
            Assert.Equal(1, collection.Count());
        }
        public void SecureUrls_ShouldReturn1_WhenThereIs1SecureUrlTypeInCollection() {
            // arrange
            var collection = new SecureUrlCollection();
            var ignoreUrlOne = new IgnoreUrl();
            var ignoreUrlTwo = new IgnoreUrl();
            var secureUrl = new SecureUrl();

            // act
            collection.Add(ignoreUrlOne);
            collection.Add(ignoreUrlTwo);
            collection.Add(secureUrl);

            //assert
            Assert.Equal(1, collection.SecureUrls.Count);
            Assert.Equal(3, collection.Count());
        }
 public static bool MatchRegex(string url, SecureUrl secureUrl) {
     return Regex.IsMatch(url, secureUrl.Url, secureUrl.RegexOptions);
 }