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); }
public BasketCountryNode(CountryBasket basket) { this.Basket = basket; }
public void Resolve(CountryBasket basket) { this.Result = this.initializer.TryGetTotalByBasket(basket, benchmarkRepository, this.benchmarkId); }
public void Resolve(CountryBasket basket) { this.Result = this.serializer.SerializeCountryBasket(basket); }