Ductus.FluentDocker.MsTest 2.10.59

dotnet add package Ductus.FluentDocker.MsTest --version 2.10.59
NuGet\Install-Package Ductus.FluentDocker.MsTest -Version 2.10.59
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ductus.FluentDocker.MsTest" Version="2.10.59" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Ductus.FluentDocker.MsTest --version 2.10.59
#r "nuget: Ductus.FluentDocker.MsTest, 2.10.59"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Ductus.FluentDocker.MsTest as a Cake Addin
#addin nuget:?package=Ductus.FluentDocker.MsTest&version=2.10.59

// Install Ductus.FluentDocker.MsTest as a Cake Tool
#tool nuget:?package=Ductus.FluentDocker.MsTest&version=2.10.59

FluentDocker for MsTest

In addition to the standard FluentDocker usage, it adds the ability to use easy testing with containers via MsTest.

For example, fire up a Postgres container inside the test could look like this

[TestClass]
public class PostgresMsTests : PostgresTestBase
{
    [TestMethod]
    public void Test()
    {
          // We now have a running Postgres
          // and a valid connection string to use.
    }
}

This library enables docker and docker-compose interactions using a Fluent API. It is supported on Linux, Windows and Mac. It also has support for the legacy docker-machine interactions.

Have a look at the project site for more information.

Sample Fluent API usage

      using (
        var container =
          new Builder().UseContainer()
            .UseImage("kiasaki/alpine-postgres")
            .ExposePort(5432)
            .WithEnvironment("POSTGRES_PASSWORD=mysecretpassword")
            .WaitForPort("5432/tcp", 30000 /*30s*/)
            .Build()
            .Start())
      {
        var config = container.GetConfiguration(true);
        Assert.AreEqual(ServiceRunningState.Running, config.State.ToServiceState());
      }

The following snippet fires up Postgres and waits for it to be ready. It uses docker-compose file to perform the task.

      var file = Path.Combine(Directory.GetCurrentDirectory(),
        (TemplateString) "Resources/ComposeTests/WordPress/docker-compose.yml");

      // @formatter:off
      using (var svc = new Builder()
                        .UseContainer()
                        .UseCompose()
                        .FromFile(file)
                        .RemoveOrphans()
                        .WaitForHttp("wordpress", "http://localhost:8000/wp-admin/install.php") 
                        .Build().Start())
        // @formatter:on
      {
        // We now have a running WordPress with a MySql database        
        var installPage = await "http://localhost:8000/wp-admin/install.php".Wget();

        Assert.IsTrue(installPage.IndexOf("https://wordpress.org/", StringComparison.Ordinal) != -1);
        Assert.AreEqual(1, svc.Hosts.Count); // The host used by compose
        Assert.AreEqual(2, svc.Containers.Count); // We can access each individual container
        Assert.AreEqual(2, svc.Images.Count); // And the images used.
      }

👀 It has tons of features, including a low-level command style, services and finally, the Fluent API on top of it.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Ductus.FluentDocker.MsTest:

Repository Stars
taosdata/taos-connector-csharp
EntityFramework, EF Core, ADO.NET, ORM,Stmt,TDengine
Version Downloads Last updated
2.10.59 14,212 1/11/2023
2.10.57 602 9/24/2022
2.10.56 3,374 8/24/2022
2.10.55 12,108 6/24/2022
2.10.54 410 6/24/2022
2.10.53 420 6/23/2022
2.10.51 1,137 6/7/2022
2.10.50 419 6/7/2022
2.10.48 2,075 5/30/2022
2.10.46 429 5/30/2022
2.10.45 13,985 3/9/2022
2.10.44 562 12/8/2021
2.10.42 3,291 11/24/2021
2.10.41 6,697 11/23/2021
2.10.40 1,024 10/27/2021
2.10.39 725 10/1/2021
2.10.35 378 10/1/2021
2.10.25 428 10/1/2021
2.10.23 446 10/1/2021
2.10.22 400 9/29/2021
2.10.21 458 9/19/2021
2.10.20 436 9/17/2021
2.10.19 427 9/16/2021
2.10.17 446 9/16/2021
2.10.16 431 9/15/2021
2.10.15 378 9/15/2021
2.10.14 466 9/14/2021
2.10.12 480 9/14/2021
2.10.10 466 9/13/2021
2.10.8 543 9/13/2021
2.10.7 1,190 6/11/2021
2.10.6 974 4/23/2021
2.10.5 498 4/20/2021
2.10.3 532 4/5/2021
2.10.2 467 3/28/2021
2.9.4 478 3/26/2021
2.9.3-beta.2 190 3/25/2021
2.8.14-beta.22 165 3/24/2021
2.8.13-beta.21 177 3/24/2021
2.8.12-beta.20 175 3/23/2021
2.8.11-beta.19 146 3/22/2021
2.8.10-beta.18 152 3/22/2021
2.8.9-beta.17 167 3/22/2021
2.8.8-beta.14 158 3/17/2021
2.8.7-beta.9 199 3/11/2021
2.8.5-beta.4 248 3/7/2021
2.8.5-beta.2 143 3/24/2021
2.8.4-beta.3 149 3/3/2021
2.8.3 504 3/24/2021
2.8.2 513 3/3/2021
2.7.80-beta.159 173 3/1/2021
2.7.71-beta.150 791 11/27/2020
2.7.69-beta.147 222 10/12/2020
2.7.68-beta.146 219 10/8/2020
2.7.66-beta.142 357 8/8/2020
2.7.65-beta.141 222 8/7/2020
2.7.64-beta.140 320 8/6/2020
2.7.62-beta.138 264 5/4/2020
2.7.60-beta.127 267 4/30/2020
2.7.59-beta0123 415 2/13/2020
2.7.58-beta0122 383 2/12/2020
2.7.54-beta0117 455 1/23/2020
2.7.53-beta0116 475 1/23/2020
2.7.52-beta0105 417 1/20/2020
2.7.51-beta0102 390 1/14/2020
2.7.50-beta0094 414 12/20/2019
2.7.49-beta0091 407 12/18/2019
2.7.48-beta0087 439 12/17/2019
2.7.47-beta0081 442 12/17/2019
2.7.46-beta0080 414 12/16/2019
2.7.45-beta0079 399 12/12/2019
2.7.44-beta0078 389 12/12/2019
2.7.42-beta0076 404 12/12/2019
2.7.41-beta0075 378 12/12/2019
2.7.38-beta0072 409 11/24/2019
2.7.37-beta0071 417 11/24/2019
2.7.36-beta0070 424 11/24/2019
2.7.35-beta0069 385 11/20/2019
2.7.34-beta0068 386 11/20/2019
2.7.33-beta0067 401 11/20/2019
2.7.32-beta0066 383 11/12/2019
2.7.31-beta0064 413 11/12/2019
2.7.30-beta0050 404 11/8/2019
2.7.29-beta0046 380 11/8/2019
2.7.28-beta0045 407 11/8/2019
2.7.27-beta0043 411 11/8/2019
2.7.22-devops-deploy-on0001 393 11/8/2019
2.7.21-devops-editorcon0003 393 11/8/2019
2.7.21-devops-editorcon0002 383 11/8/2019
2.7.21-devops-editorcon0001 386 11/8/2019
2.7.21-beta0036 387 11/8/2019
2.7.20-beta0032 393 11/8/2019
2.7.19-beta0030 392 11/8/2019
2.7.4-beta0001 401 11/8/2019
2.7.3 10,774 10/18/2019
2.7.2 755 9/10/2019
2.7.1 847 8/7/2019
2.7.0 693 8/6/2019
2.6.9 658 7/29/2019
2.6.8 717 5/31/2019
2.6.7 768 5/17/2019
2.6.6 821 4/11/2019
2.6.5 731 4/2/2019
2.6.4 2,131 12/6/2018
2.6.3 889 10/15/2018
2.6.2 861 10/3/2018
2.6.1 887 10/3/2018
2.6.0 961 10/2/2018
2.5.1 873 9/29/2018
2.5.0 882 9/29/2018
2.4.1 850 9/27/2018
2.4.0 916 9/18/2018
2.3.2 1,687 8/6/2018
2.3.1 924 7/20/2018
2.3.0 1,111 7/2/2018
2.2.19 1,086 6/27/2018
2.2.18 1,183 6/25/2018
2.2.17 1,125 6/15/2018
2.2.16 1,054 6/14/2018
2.2.15 1,186 6/7/2018
2.2.14 1,139 6/1/2018
2.2.13 1,081 5/22/2018
2.2.12 1,332 4/20/2018
2.2.11 1,075 4/18/2018
2.2.10 1,071 4/17/2018
2.2.9 1,211 4/6/2018
2.2.8 4,057 11/22/2017
2.2.7 1,108 11/22/2017
2.2.6 1,058 11/21/2017
2.2.5 1,064 11/9/2017
2.2.4 1,088 11/9/2017
2.2.3 1,139 8/25/2017
2.2.2 1,166 5/22/2017
2.2.1 1,154 4/6/2017
2.2.0 1,063 6/5/2016
2.1.1 1,008 5/27/2016
2.0.0 1,100 4/24/2016
1.1.4 1,002 3/31/2016
1.1.3 1,025 3/30/2016
1.1.2 1,011 3/30/2016
1.1.1 961 3/29/2016
1.1.0 1,050 3/29/2016
1.0.3 1,042 3/24/2016
1.0.2 1,274 3/23/2016
1.0.1 1,270 3/23/2016