public void TestSetup() { _mocks = new MockRepository(); _mockSettings = _mocks.StrictMock <IIncludeHandlingSettings>(); _mockCombiner = _mocks.StrictMock <IIncludeCombiner>(); _controller = new IncludeController(_mockSettings, _mockCombiner); _mocks.ReplayAll(); }
public ControllerTests() { this._RepositoryService = new RepositoryService(new MockDAL().ApplicationContext.Object); this._PageController = new PageController(this._RepositoryService); this._includeController = new IncludeController(this._RepositoryService); }