#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously
        private async Task DisposeEnvironment(DockerEnvironment environment)
#pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously
        {
#if !DEBUG
            await environment.Down();

            await environment.DisposeAsync();
#endif
        }
예제 #2
0
        public async Task DisposeAsync()
        {
            TestClient.Dispose();
            _host.Dispose();

#if !DEBUG
            await _environment.DisposeAsync();
#endif
        }
예제 #3
0
        public async Task DisposeAsync()
        {
            if (Collection != null)
            {
                await _configuration.DisposeAsync(Collection);
            }

            await _environment.Down();

            await _environment.DisposeAsync();
        }
예제 #4
0
        public async Task GlobalCleanup()
        {
            await _env.Down();

            await _env.DisposeAsync();
        }
예제 #5
0
        public async Task OneTimeTearDown()
        {
            await _dockerEnvironment.DisposeAsync();

            await DbContext.DisposeAsync();
        }
예제 #6
0
        public async Task DisposeAsync()
        {
            await m_environment.DisposeAsync();

            Dispose();
        }