using System.Threading.Tasks;
using TestEnvironment.Docker;
using TestEnvironment.Docker.Containers.Mssql;
namespace EnvironmentDockerIssue
{
internal class Program
{
static async Task Main()
{
var environmentBuilder = new DockerEnvironmentBuilder();
var env = environmentBuilder
.UseDefaultNetwork()
.SetName("testing")
.AddMssqlContainer("mssql", "sapassword")
.Build();
await env.Up();
}
}
}
You will get the following:
Method not found: 'Void TestEnvironment.Docker.Container..ctor(Docker.DotNet.DockerClient, System.String, System.String, System.String, System.Collections.Generic.IDictionary`2<System.String,System.String>, Sy
stem.Collections.Generic.IDictionary`2<UInt16,UInt16>, Boolean, Boolean, TestEnvironment.Docker.IContainerWaiter, TestEnvironment.Docker.IContainerCleaner, Microsoft.Extensions.Logging.ILogger)'.
at TestEnvironment.Docker.Containers.Mssql.MssqlContainer..ctor(DockerClient dockerClient, String name, String saPassword, String imageName, String tag, IDictionary`2 environmentVariables, IDictionary`2 ports, Boolean isDockerInDocker, Boolean reuseContainer
, ILogger logger)
at TestEnvironment.Docker.Containers.Mssql.DockerEnvironmentBuilderExtensions.AddMssqlContainer(IDockerEnvironmentBuilder builder, String name, String saPassword, String imageName, String tag, IDictionary`2 environmentVariables, IDictionary`2 ports, Boolean
reuseContainer)
at EnvironmentDockerIssue.Program.Main() in F:\EnvironmentDockerIssue\EnvironmentDockerIssue\Program.cs:line 12
at EnvironmentDockerIssue.Program.<Main>()
The issue is not observed on the TestEnvironment.Docker 1.3.5
The sample to reproduce:
EnvironmentDockerIssue.zip
Package versions TestEnvironment.Docker 1.3.6 TestEnvironment.Docker.Containers.Mssql 1.0.6
If you execute the following code
You will get the following:
The issue is not observed on the TestEnvironment.Docker 1.3.5 The sample to reproduce: EnvironmentDockerIssue.zip