Esempio n. 1
0
 private void Populate(TotalStocksModel totalStocksModel)
 {
     Type        = totalStocksModel.Type;
     Number      = totalStocksModel.Number;
     StockWeight = totalStocksModel.StockWeight;
     MarketValue = totalStocksModel.MarketValue;
 }
Esempio n. 2
0
        public FundTotalItem(IEventAggregator aggregator, TotalStocksModel totalStocksModel)
            : base(aggregator)
        {
            if (totalStocksModel == null)
            {
                throw new ArgumentNullException(nameof(totalStocksModel));
            }

            Populate(totalStocksModel);
        }
Esempio n. 3
0
 public IFundTotalItem Convert(IEventAggregator aggregator, TotalStocksModel totalStocksModel)
 {
     return(new FundTotalItem(aggregator, totalStocksModel));
 }