Exemplo n.º 1
0
        public void SetUp()
        {
            _logManagerMock = new Mock <ILogManager>();
            _logMock        = new Mock <ILog>();

            _logManagerMock.Setup(x => x.GetLog(typeof(SimpleTraceWriter))).Returns(_logMock.Object);

            _simpleTraceWriter = new SimpleTraceWriterTestDouble(_logManagerMock.Object);
        }
Exemplo n.º 2
0
        public void SetUp()
        {
            _logManagerMock = new Mock<ILogManager>();
            _logMock = new Mock<ILog>();

            _logManagerMock.Setup(x => x.GetLog(typeof (SimpleTraceWriter))).Returns(_logMock.Object);

            _simpleTraceWriter = new SimpleTraceWriterTestDouble(_logManagerMock.Object);
        }