/// <summary> /// Create a new <see cref="Artifact"/> as the first generation. /// </summary> /// <returns><see cref="Artifact">New artifact</see>.</returns> public static Artifact New() { return(new Artifact(ArtifactId.New(), ArtifactGeneration.First)); }
/// <summary> /// Initializes a new instance of the <see cref="Artifact"/> class. /// </summary> /// <param name="id"><see cref="ArtifactId">Id</see> of the <see cref="Artifact"/>.</param> /// <param name="generation"><see cref="ArtifactGeneration">Generation</see> of the <see cref="Artifact"/>.</param> public Artifact(ArtifactId id, ArtifactGeneration generation) { Id = id; Generation = generation; }