Esempio n. 1
0
        private bool NameMatches(string source, string target)
        {
            var sourceReplacements = replacementSelector.SelectAll(source);
            var targetReplacements = replacementSelector.SelectAll(target);

            return(source == target ||
                   sourceReplacements.Any(s => s == target) ||
                   targetReplacements.Any(t => t == source));
        }
Esempio n. 2
0
        public void SelectAll_Single_NoReplace()
        {
            var results = replacementSelector.SelectAll("my value");

            Assert.That(results.Count(), Is.EqualTo(1));
            Assert.That(results.Single(), Is.EqualTo("my value"));
        }
Esempio n. 3
0
        public IEnumerable <string> SelectAllFrom(string tableName)
        {
            var results    = innerSelector.SelectAllFrom(tableName);
            var allResults = replacementSelector.SelectAll(results);

            return(allResults);
        }