private void Populate(TotalStocksModel totalStocksModel) { Type = totalStocksModel.Type; Number = totalStocksModel.Number; StockWeight = totalStocksModel.StockWeight; MarketValue = totalStocksModel.MarketValue; }
public FundTotalItem(IEventAggregator aggregator, TotalStocksModel totalStocksModel) : base(aggregator) { if (totalStocksModel == null) { throw new ArgumentNullException(nameof(totalStocksModel)); } Populate(totalStocksModel); }
public IFundTotalItem Convert(IEventAggregator aggregator, TotalStocksModel totalStocksModel) { return(new FundTotalItem(aggregator, totalStocksModel)); }