Ejemplo n.º 1
0
            public async Task UnsafeDisposable()
            {
                // Given
                IDockerContainer testcontainer = new TestcontainersBuilder <TestcontainersContainer>()
                                                 .WithImage("alpine")
                                                 .WithLabel(typeof(TestcontainersContainer).Assembly.GetName().Name, nameof(this.UnsafeDisposable))
                                                 .Build();

                // When
                // Then
                await testcontainer.StartAsync();

                await testcontainer.StopAsync();

                await testcontainer.DisposeAsync();
            }