public void GetCombination_ShouldAskStorageForCombination()
        {
            _mockStorage.Expect(s => s.GetCombination("foo")).Return(new IncludeCombination(IncludeType.Css, new[] { "~/content/css/foo.css" }, ".foo{}", DateTime.UtcNow, new CssTypeElement()));
            IncludeCombination combination = _combiner.GetCombination("foo");

            Assert.IsNotNull(combination);
            _mocks.VerifyAll();
        }
 public IncludeCombinationResult(IIncludeCombiner combiner, string key, DateTime now)
 {
     if (combiner == null)
     {
         throw new ArgumentNullException("combiner");
     }
     if (string.IsNullOrEmpty(key))
     {
         throw new ArgumentException("key");
     }
     _key = key;
     _now = now;
     Combination = combiner.GetCombination(_key);
 }
Example #3
0
 public IncludeCombinationResult(IIncludeCombiner combiner, string key, DateTime now)
 {
     if (combiner == null)
     {
         throw new ArgumentNullException("combiner");
     }
     if (string.IsNullOrEmpty(key))
     {
         throw new ArgumentException("key");
     }
     _key        = key;
     _now        = now;
     Combination = combiner.GetCombination(_key);
 }