public override bool HasBeenApplied(IPortfolioTransactionList transactions) { if (ResultingStocks.Any()) { return(transactions.ForHolding(ResultingStocks.First().Stock, ImplementationDate).OfType <OpeningBalance>().Any()); } else { return(transactions.ForHolding(Stock.Id, ImplementationDate).OfType <Disposal>().Any()); } }
public override bool HasBeenApplied(IPortfolioTransactionList transactions) { if (ChildActions.Any()) { return(ChildActions.First().HasBeenApplied(transactions)); } else { return(false); } }
public abstract bool HasBeenApplied(IPortfolioTransactionList transactions);
public override bool HasBeenApplied(IPortfolioTransactionList transactions) { return(transactions.ForHolding(Stock.Id, Date).OfType <UnitCountAdjustment>().Any()); }
public override bool HasBeenApplied(IPortfolioTransactionList transactions) { return(transactions.ForHolding(Stock.Id, PaymentDate).OfType <ReturnOfCapital>().Any()); }