public BasketRegionModel CreateBasketRegion(Computations computations, BasketRegionNode basketRegionNode) { var countries = basketRegionNode.Basket.Countries.Select(x => this.CreateCountry(x)).ToList(); var baseExpression = this.modelBuilder.CreateBaseExpression(); var portfolioAdjustmentExpression = this.modelBuilder.CreatePortfolioAdjustmentExpression(); var result = this.modelBuilder.CreateBasketRegionModel( basketRegionNode.Basket, countries, computations, baseExpression, portfolioAdjustmentExpression ); return(result); }
public void Resolve(BasketRegionNode node) { this.ResultOpt = node.Basket; }
public BasketRegionNode CreateBasketRegion(BasketRegionModel model) { var result = new BasketRegionNode(model.Basket); return(result); }
public void Resolve(BasketRegionNode basketRegionNode) { this.Result = this.creator.CreateBasketRegion(this.computations, basketRegionNode); }