Example #1
0
        public virtual void SetUp()
        {
            HttpContext.Current = new HttpContext(
                new HttpRequest(null, "http://localhost:7013/", null),
                new HttpResponse(new StringWriter()));

            datalist = new TestDatalistStub();
            html     = MockHtmlHelper();
        }
Example #2
0
        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;
        }