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