public BankAccountRemoved(Guid supplierId, BankAccount bankAccount) : base(supplierId) { SupplierId = supplierId; BankAccount = bankAccount; }
public RemoveBankAccount(Guid customerId, BankAccount bankAccount) : base(customerId) { CustomerId = customerId; BankAccount = bankAccount; }
public AddBankAccount(Guid supplierId, BankAccount bankAccount) : base(supplierId) { SupplierId = supplierId; BankAccount = bankAccount; }
public BankAccountAdded(Guid customerId, BankAccount bankAccount) : base(customerId) { CustomerId = customerId; BankAccount = bankAccount; }
protected bool Equals(BankAccount other) { return BankId.Equals(other.BankId) && string.Equals(AccountNo, other.AccountNo); }