Exemplo n.º 1
0
        public string RegisterCombination(IEnumerable <string> sources, IncludeType type, DateTime now)
        {
            var combinedContent = new StringBuilder();

            foreach (var source in sources)
            {
                var include = RegisterInclude(source, type);
                combinedContent.Append(include.Content).AppendLine();
            }
            var combination = new IncludeCombination(type, sources, combinedContent.ToString(), now, _settings.Types[type]);
            var key         = _storage.Store(combination);

            return(key);
        }
Exemplo n.º 2
0
        public void StoreInclude_ShouldThrowWhenNull()
        {
            const Include include = null;

            Assert.Throws <ArgumentNullException>(() => _storage.Store(include));
        }