public IEnumerable <IGlobeResident> Traverse(BgaRootModel model) { model.InitializeWhenDeSerializationIsDone(); var result = new List <IGlobeResident>(); this.TraverseGlobe(model.Globe, result); var cash = model.Cash; var cashLine = new CashLineModel( cash.Base, cash.Scaled, cash.TrueExposure, cash.TrueActive ); cashLine.Parent = model.Globe; result.Add(cashLine); var globe = model.Globe; var totalLine = new TotalLineModel( model.BaseGrandTotal, globe.Benchmark, globe.Overlay, globe.PortfolioAdjustment, model.PortfolioScaledGrandTotal, model.TrueExposureGrandTotal, model.TrueActiveGrandTotal ); totalLine.Parent = model.Globe; result.Add(totalLine); return(result); }
public void Resolve(CashLineModel model) { // do nothing }
public void Resolve(CashLineModel model) { throw new InvalidCastException("Not expeceted here."); }
public void Resolve(CashLineModel model) { this.Result = this.parent.CashLineTemplate; }