public RevenueEntry
 (
     Revenue revenue,
     Account account
 ) : base(revenue.ReferenceName, DateTime.Now, DateTime.Now, DateTime.Now, EEntryType.Credit, revenue.Amount, account, null)
 {
 }
        public void AddRevenue(Revenue revenue)
        {
            if (revenue.AccountId != Id)
            {
                throw new ArgumentException("The given revenue doesn't belong to this account!", nameof(revenue));
            }

            if (_revenues.Contains(revenue))
            {
                return;
            }

            _revenues.Add(revenue);
        }