-
-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2175439
commit c8db232
Showing
6 changed files
with
55 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,30 @@ | ||
namespace DotNet.Testcontainers.Core.Mapper | ||
{ | ||
/// <summary> | ||
/// Converts or maps the Testcontainers configuration to the official Docker configuration. | ||
/// </summary> | ||
/// <typeparam name="TSource">Testcontainers configuration type.</typeparam> | ||
/// <typeparam name="TTarget">Official Docker configuration type.</typeparam> | ||
internal abstract class BaseConverter<TSource, TTarget> | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="BaseConverter{TSource, TTarget}"/> class. | ||
/// </summary> | ||
/// <param name="name">Name of the converter.</param> | ||
protected BaseConverter(string name) | ||
{ | ||
this.Name = name; | ||
} | ||
|
||
/// <summary>Gets the name of the converter.</summary> | ||
/// <value>Identifies the converter, if source and target types are frequently used.</value> | ||
public string Name { get; } | ||
|
||
/// <summary> | ||
/// Converts or maps the Testcontainers configuration to the official Docker configuration. | ||
/// </summary> | ||
/// <param name="source">Testcontainers configuration.</param> | ||
/// <returns>Official Docker configuration.</returns> | ||
public abstract TTarget Convert(TSource source); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters