public RegisterSuccessfullPayment(AccountNumber accountNumber, BillingResult billingResult) { Mandate.ParameterNotNullOrEmpty(accountNumber, "accountNumber"); Mandate.ParameterNotDefaut(billingResult, "billingResult"); AccountNumber = accountNumber; BillingResult = billingResult; }
public virtual bool Equals(BillingResult other) { if (null != other && other.GetType() == GetType()) { return other.Paid == Paid && other.Amount == Amount && other.PaymentDate == PaymentDate; } return false; }