Exemplo n.º 1
0
        protected Decimal?TryGetTotalByBasket(CountryBasket basket, BenchmarkRepository benchmarkRepository, String benchmarkId)
        {
            var country = basket.Country;
            var result  = this.TryGetTotalByCountry(country, benchmarkRepository, benchmarkId);

            return(result);
        }
 public BasketCountryModel(
     CountryBasket basket,
     UnchangableExpression <Decimal> benchmarkExpression,
     EditableExpression baseExpression,
     Func <BasketCountryModel, IExpression <Decimal?> > baseActiveExpressionCreator,
     UnchangableExpression <Decimal> overlayExpression,
     EditableExpression portfolioAdjustmentExpression,
     Func <BasketCountryModel, IExpression <Decimal?> > portfolioScaledExpressionCreator,
     Func <BasketCountryModel, IExpression <Decimal?> > trueExposureExpressionCreator,
     Func <BasketCountryModel, IExpression <Decimal?> > trueActiveExpressionCreator,
     CommonParts commonParts
     )
 {
     this.Basket              = basket;
     this.Benchmark           = benchmarkExpression;
     this.Base                = baseExpression;
     this.BaseActive          = baseActiveExpressionCreator(this);
     this.Overlay             = overlayExpression;
     this.PortfolioAdjustment = portfolioAdjustmentExpression;
     this.PortfolioScaled     = portfolioScaledExpressionCreator(this);
     this.TrueExposure        = trueExposureExpressionCreator(this);
     this.TrueActive          = trueActiveExpressionCreator(this);
 }
Exemplo n.º 3
0
 public BasketCountryNode(CountryBasket basket)
 {
     this.Basket = basket;
 }
Exemplo n.º 4
0
 public void Resolve(CountryBasket basket)
 {
     this.Result = this.initializer.TryGetTotalByBasket(basket, benchmarkRepository, this.benchmarkId);
 }
Exemplo n.º 5
0
 public void Resolve(CountryBasket basket)
 {
     this.Result = this.serializer.SerializeCountryBasket(basket);
 }