示例#1
0
        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();
        }
示例#2
0
 public void UpdateDividendDeclarationDate(DividendDeclarationDate value)
 {
     DividendDeclarationDate = value ?? throw new ArgumentNullException("The dividend declaration date is required.");
 }