예제 #1
0
        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);
        }
예제 #2
0
        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);
        }