public DividendPaymentRate ( EconomicEvent economicEvent, StockSubscription stockSubscription, DividendDeclarationDate dividendDeclarationDate, DividendPerShare dividendPerShare, UserId userID ) { EconomicEvent = economicEvent ?? throw new ArgumentNullException("The economic event is required."); StockSubscription = stockSubscription ?? throw new ArgumentNullException("The stock subscription is required."); StockId = stockSubscription.Id; DividendDeclarationDate = dividendDeclarationDate ?? throw new ArgumentNullException("The dividend declaration date is required."); DividendPerShare = dividendPerShare ?? throw new ArgumentNullException("The dividend per share is required."); UserId = userID ?? throw new ArgumentNullException("The stock issue date is required."); CheckValidity(); }
public void UpdateDividendDeclarationDate(DividendDeclarationDate value) { DividendDeclarationDate = value ?? throw new ArgumentNullException("The dividend declaration date is required."); }