Exemplo n.º 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);
        }
Exemplo n.º 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);
        }