public virtual void SetUp() { HttpContext.Current = new HttpContext( new HttpRequest(null, "http://localhost:7013/", null), new HttpResponse(new StringWriter())); datalist = new TestDatalistStub(); html = MockHtmlHelper(); }
public void SetUp() { HttpContext.Current = new HttpContext( new HttpRequest(null, "http://localhost:7013/", null), new HttpResponse(new StringWriter())); datalistMock = new Mock <TestDatalistStub> { CallBase = true }; datalist = datalistMock.Object; }