コード例 #1
0
		public void SetUp()
		{
			_ravenClientMock = new Mock<IRavenClient>();
			_loggerRepositoryMock = new Mock<ILoggerRepository>();

			_sentryAppender = new SentryAppenderUnderTest();
			_sentryAppender.SetRavenClient(_ravenClientMock.Object);
		}
コード例 #2
0
        public void SetUp()
        {
            _ravenClientMock      = new Mock <IRavenClient>();
            _loggerRepositoryMock = new Mock <ILoggerRepository>();

            _sentryAppender = new SentryAppenderUnderTest();
            _sentryAppender.SetRavenClient(_ravenClientMock.Object);
        }
コード例 #3
0
        public void SetUp()
        {
            _ravenClientMock      = new Mock <IRavenClient>();
            _loggerRepositoryMock = new Mock <ILoggerRepository>();

            _sentryAppender = new SentryAppenderUnderTest();
            _sentryAppender.SetRavenClient(_ravenClientMock.Object);

            // Capture should return non-null message ID or null if something failed
            _ravenClientMock.Setup(foo => foo.Capture(It.IsAny <SentryEvent>()))
            .Callback <SentryEvent>(foo => _testEvent = foo)
            .Returns("fake message ID");
        }