Esempio n. 1
0
        /// <summary>
        ///   Performs the tasks needed to clean up the environment for the test scenario.
        ///   When multiple instances are run in parallel, the cleanup will take place once,
        ///   after the execution of all test instances.
        /// </summary>
        ///
        public async override Task GlobalCleanupAsync()
        {
            await s_producer.CloseAsync().ConfigureAwait(false);

            await s_scope.DisposeAsync().ConfigureAwait(false);

            await base.GlobalCleanupAsync().ConfigureAwait(false);
        }
 public async Task FixtureTearDown()
 {
     await Task.WhenAll
     (
         _eventHubScope.DisposeAsync().AsTask(),
         _storageScope.DisposeAsync().AsTask()
     );
 }
Esempio n. 3
0
 public async Task FixtureTearDown()
 {
     await _eventHubScope.DisposeAsync();
 }
 public async Task FixtureTearDown()
 {
     await _scope.DisposeAsync();
 }