public DockerFixture(IMessageSink messageSink) { var logger = new DefaultLogger(); config = new WaitForDockerConfigurationBuilder() .SetCustomLogger(logger) .AddHealthCheck(check => check.WithHttp("rabbitmq", new Uri("http://localhost:15672"), portOfDistinction: 15672)) .AddHealthCheck(check => check.WithCmd("rabbitmq", "rabbitmqctl status", portOfDistinction: 5672)) .AddHealthCheck(check => check.WithCustom(logger1 => new SomeHealthCheck("123", 1, null, logger1))) .Build(); WaitFor.DockerCompose(config).GetAwaiter().GetResult(); }