예제 #1
0
        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);
        }
예제 #2
0
 public void Resolve(BasketRegionNode node)
 {
     this.ResultOpt = node.Basket;
 }
예제 #3
0
        public BasketRegionNode CreateBasketRegion(BasketRegionModel model)
        {
            var result = new BasketRegionNode(model.Basket);

            return(result);
        }
예제 #4
0
 public void Resolve(BasketRegionNode basketRegionNode)
 {
     this.Result = this.creator.CreateBasketRegion(this.computations, basketRegionNode);
 }