示例#1
0
 public BankCard CardOn(Timestamp time) =>
 time.CompareTo(this.ValidBefore) >= 0
         ? (BankCard) new CardExpired(this.ValidBefore)
         : this;
示例#2
0
 public int CompareTo(Timestamp other) =>
 - other.CompareTo(this.Value);
 public override Money On(Timestamp time) =>
 time.CompareTo(this.ValidBefore) >= 0
         ? Amount.Zero(base.Currency)
         : this;