public ResultView() { this._dataSourceMock = new Mock <IResultViewDataSource>(); this._dataSourceMock.Setup(m => m.HTMLForResultView(It.IsAny <Model.ResultView>())) .Returns("<p>Original HTML</p>") .Verifiable(); this._subject = new MockResultView(this._dataSourceMock.Object); }
public ResultView() { this._dataSourceMock = new Mock<IResultViewDataSource>(); this._dataSourceMock.Setup(m => m.HTMLForResultView(It.IsAny<Model.ResultView>())) .Returns("<p>Original HTML</p>") .Verifiable(); this._subject = new MockResultView(this._dataSourceMock.Object); }