public bool Equals(Transaction other) { return EffectiveDate == other.EffectiveDate && Description == other.Description && Amount == other.Amount && IsPending == other.IsPending; }
bool AlreadyExists(IEnumerable<Transaction> list, Transaction transaction) { return list.Any(y => y.Equals(transaction)); }
private void DetachTransactions(Transaction entity) { FirePropertyChanging(); entity.Account = null; }
bool IsInternal(Transaction trans) { var match = Regex.Match(trans.Description, @"Transfer (from|to) xx(?<digits>\d+) NetBank"); return match.Success; }
private void AttachTransactions(Transaction entity) { FirePropertyChanging(); entity.Account = this; }