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); }
public void StoreInclude_ShouldThrowWhenNull() { const Include include = null; Assert.Throws <ArgumentNullException>(() => _storage.Store(include)); }