コード例 #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);
        }
コード例 #2
0
 public async Task FixtureTearDown()
 {
     await Task.WhenAll
     (
         _eventHubScope.DisposeAsync().AsTask(),
         _storageScope.DisposeAsync().AsTask()
     );
 }
コード例 #3
0
 public async Task FixtureTearDown()
 {
     await _eventHubScope.DisposeAsync();
 }
コード例 #4
0
 public async Task FixtureTearDown()
 {
     await _scope.DisposeAsync();
 }