using ValueOf; namespace Customers.Api.Domain.Common; public class CustomerId : ValueOf { protected override void Validate() { if (Value == Guid.Empty) { throw new ArgumentException("Customer Id cannot be empty", nameof(CustomerId)); } } }