/// <summary>
		/// Returns a mock docker host factory.
		/// </summary>
		private MockDockerHost GetMockDockerHost(
			DockerResult dockerResult = null)
		{
			return new MockDockerHost
			(
				dockerResult ?? new DockerResult
				(
					completed: true,
					output: "DiagnosticOutput",
					response: null
				)
			);
		}
示例#2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public MockDockerHost(DockerResult expectedResult)
 {
     _dockerResult = expectedResult;
 }