Example #1
0
        public async Task TearDown()
        {
            foreach (var pool in openedPools)
            {
                if (pool != null)
                {
                    await pool.CloseAsync();
                }
            }

            openedPools.Clear();
            StorageUtils.CleanupStorage();
        }
Example #2
0
        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();
        }
Example #3
0
        public async Task SetUp()
        {
            await InitHelper.InitAsync();

            StorageUtils.CleanupStorage();
        }
Example #4
0
 public static void AssemblyCleanup()
 {
     //Cleanup code goes here.
     StorageUtils.CleanupStorage();
 }