public override Money On(Timestamp time) =>
 time.CompareTo(this.ValidBefore) >= 0
         ? Amount.Zero(base.Currency)
         : this;
 public int CompareTo(Timestamp other) =>
 this.UtcTime.CompareTo(other.UtcTime);
示例#3
0
 public int CompareTo(Timestamp other) =>
 - other.CompareTo(this.Value);
示例#4
0
 public override Money On(Timestamp time) =>
 this;
示例#5
0
 public Money PayableAt(Money money, Amount expense, Timestamp time) =>
 money is GiftCard gift && gift.ValidBefore.CompareTo(time) < 0 ? Amount.Zero(expense.Currency)
示例#6
0
 public (Amount paid, Wallet remaining) Pay(Amount expense, Timestamp time) =>
 this.Moneys
示例#7
0
 public BankCard CardOn(Timestamp time) =>
 time.CompareTo(this.ValidBefore) >= 0
         ? (BankCard) new CardExpired(this.ValidBefore)
         : this;
示例#8
0
 public override Money On(Timestamp time) =>
 this.CardOn(time);