Example #1
0
        public StreamedResultTests()
        {
            _filePath        = TestFiles.GetTestDataPath(_testFile);
            _htmlContentType = "text/html";

            _outputStream = new Mock <Stream>();
            var context = new Mock <HttpContextBase>();

            _response = new Mock <HttpResponseBase>();
            _response.Setup(x => x.OutputStream).Returns(_outputStream.Object);
            context.Setup(x => x.Response).Returns(_response.Object);
        }