public IncludeCombiner(IIncludeHandlingSettings settings, IIncludeReader reader, IIncludeStorage storage, IHttpContextProvider http) { _settings = settings; _reader = reader; _storage = storage; _http = http; }
public void TestSetup() { _mocks = new MockRepository(); _stubKeyGen = _mocks.Stub <IKeyGenerator>(); _storage = new StaticIncludeStorage(_stubKeyGen); _combination = new IncludeCombination(IncludeType.Css, new[] { "~/content/css/foo.css" }, "#foo {color:red}", DateTime.UtcNow, new CssTypeElement()); _mocks.ReplayAll(); }
public IncludeStorageFacts() { _mocks = new MockRepository(); _stubKeyGen = _mocks.Stub<IKeyGenerator>(); _storage = new StaticIncludeStorage(_stubKeyGen); _combination = new IncludeCombination(IncludeType.Css, new[] { "~/content/css/foo.css" }, "#foo {color:red}", Clock.UtcNow, new CssTypeElement()); _mocks.ReplayAll(); }
public IncludeCombinerInteractionFacts() { _mocks = new MockRepository(); _mockSettings = _mocks.StrictMock<IIncludeHandlingSettings>(); _mockReader = _mocks.StrictMock<IIncludeReader>(); _mockStorage = _mocks.StrictMock<IIncludeStorage>(); _mockHttp = _mocks.StrictMock<IHttpContextProvider>(); _combiner = new IncludeCombiner(_mockSettings, _mockReader, _mockStorage, _mockHttp); _mocks.ReplayAll(); }
public void TestSetup() { _mocks = new MockRepository(); _mockSettings = _mocks.DynamicMock <IIncludeHandlingSettings>(); _mockReader = _mocks.DynamicMock <IIncludeReader>(); _mockStorage = _mocks.DynamicMock <IIncludeStorage>(); _mockHttp = _mocks.DynamicMock <IHttpContextProvider>(); _combiner = new IncludeCombiner(_mockSettings, _mockReader, _mockStorage, _mockHttp); _mocks.ReplayAll(); }
public void TestSetup() { _mocks = new MockRepository(); _mockSettings = _mocks.DynamicMock<IIncludeHandlingSettings>(); _mockReader = _mocks.DynamicMock<IIncludeReader>(); _mockStorage = _mocks.DynamicMock<IIncludeStorage>(); _mockHttp = _mocks.DynamicMock<IHttpContextProvider>(); _combiner = new IncludeCombiner(_mockSettings, _mockReader, _mockStorage, _mockHttp); _mocks.ReplayAll(); }