public static bool IsValid(GuidId aggregateRootId) { return (!ReferenceEquals(null, aggregateRootId)) && aggregateRootId.Id != default(Guid); }
public GuidId(GuidId idBase, string aggregateRootName) : base(aggregateRootName) { if (!IsValid(idBase)) throw new ArgumentException("Default guid value is not allowed.", nameof(idBase)); Id = idBase.Id; RawId = setRawId(Urn); }