public async Task TearDown() { foreach (var pool in openedPools) { if (pool != null) { await pool.CloseAsync(); } } openedPools.Clear(); StorageUtils.CleanupStorage(); }
public static void AssemblyInit(TestContext context) { //Initialization code goes here. var config = new LoggingConfiguration(); // Step 2. Create targets var consoleTarget = new ColoredConsoleTarget("target1") { Layout = @"${date:format=HH\:mm\:ss} ${level} ${message} ${exception}" }; consoleTarget.DetectConsoleAvailable = false; config.AddTarget(consoleTarget); config.AddRuleForAllLevels(consoleTarget); // all to console // Step 4. Activate the configuration LogManager.Configuration = config; Hyperledger.Indy.Utils.Logger.Init(); StorageUtils.CleanupStorage(); }
public async Task SetUp() { await InitHelper.InitAsync(); StorageUtils.CleanupStorage(); }
public static void AssemblyCleanup() { //Cleanup code goes here. StorageUtils.CleanupStorage(); }