public void SetUp() { // Setup some reference data in the DB StressTestsHelper.ClearTestDatabase(); StressTestsHelper.SetupTestDatabase(); // Create Message Headers CreateMessageHeaders(); HermesAuthorizationMediator.Configuration = StressTestsHelper.CreateMediatorConfig(); // Open transaction for calls from service TransactionOptions options = new TransactionOptions(); options.IsolationLevel = IsolationLevel.RepeatableRead; scope = new TransactionScope(TransactionScopeOption.RequiresNew, options); // Get some entities already present in database. These are used by the tests. CreateReferenceEntities(); }