public override Money On(Timestamp time) =>
 new SpecificCard(this.Currency, this.Card.CardOn(time));
Exemplo n.º 2
0
 public override Money On(Timestamp time) =>
 this.CardOn(time);
Exemplo n.º 3
0
 public BankCard CardOn(Timestamp time) =>
 time.CompareTo(this.ValidBefore) >= 0
         ? (BankCard) new CardExpired(this.ValidBefore)
         : this;
Exemplo n.º 4
0
 public int CompareTo(Timestamp other) =>
 - other.CompareTo(this.Value);