public void Setup()
 {
     target = new ErrorLoger();
     HttpContext mockContext = Mock.Create<HttpContext>();
     Mock.Arrange(() => mockContext.Error).Returns(new Exception(TestError));
     target.Context = mockContext;
     MockLogger = new MockILogger();
     target.LoggerInterface = MockLogger;
 }
Exemplo n.º 2
0
        public void Setup()
        {
            target = new ErrorLoger();
            HttpContext mockContext = Mock.Create <HttpContext>();

            Mock.Arrange(() => mockContext.Error).Returns(new Exception(TestError));
            target.Context         = mockContext;
            MockLogger             = new MockILogger();
            target.LoggerInterface = MockLogger;
        }