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());
     }
 }
예제 #2
0
 public override bool HasBeenApplied(IPortfolioTransactionList transactions)
 {
     if (ChildActions.Any())
     {
         return(ChildActions.First().HasBeenApplied(transactions));
     }
     else
     {
         return(false);
     }
 }
예제 #3
0
 public abstract bool HasBeenApplied(IPortfolioTransactionList transactions);
예제 #4
0
 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());
 }