public void SetUp() { testId = Guid.NewGuid().ToString(); LogFactory = new TransportTestLoggerFactory(); LogManager.UseFactory(LogFactory); //when using [TestCase] NUnit will reuse the same test instance so we need to make sure that the message pump is a fresh one MessagePump = null; TransportInfrastructure = null; Configurer = null; testCancellationTokenSource = null; }
static NServiceBusTransportTest() { LogFactory = new TransportTestLoggerFactory(); LogManager.UseFactory(LogFactory); }