public void RegisterDisbursementPayout(Money amount) { if (Math.Abs(State.Balance - amount) <= State.LoanAmount) { ApplyChange(new DisbursementRegistered(DisbursementId.NewId(), amount)); } }
public Disbursement(DisbursementId id, Money amount) { Id = id; Amount = amount; }