using ColaFlow.Shared.Kernel.Common;

namespace ColaFlow.Modules.ProjectManagement.Domain.ValueObjects;

/// <summary>
/// EpicId Value Object (strongly-typed ID)
/// </summary>
public sealed class EpicId : ValueObject
{
    public Guid Value { get; private set; }

    private EpicId(Guid value)
    {
        Value = value;
    }

    public static EpicId Create() => new EpicId(Guid.NewGuid());
    public static EpicId Create(Guid value) => new EpicId(value);
    public static EpicId From(Guid value) => new EpicId(value);

    protected override IEnumerable<object> GetAtomicValues()
    {
        yield return Value;
    }

    public override string ToString() => Value.ToString();
}
