public void SetUp() { _ravenClientMock = new Mock<IRavenClient>(); _loggerRepositoryMock = new Mock<ILoggerRepository>(); _sentryAppender = new SentryAppenderUnderTest(); _sentryAppender.SetRavenClient(_ravenClientMock.Object); }
public void SetUp() { _ravenClientMock = new Mock <IRavenClient>(); _loggerRepositoryMock = new Mock <ILoggerRepository>(); _sentryAppender = new SentryAppenderUnderTest(); _sentryAppender.SetRavenClient(_ravenClientMock.Object); }
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"); }