Esempio n. 1
0
        protected BasketCountryModel SerializeBasketCountry(Core.ManagingBpt.BasketCountryModel model, CalculationTicket ticket)
        {
            var result = new BasketCountryModel(
                this.serializer.SerializeEditableExpression(model.Base),
                this.serializer.SerializeNullableExpression(model.BaseActive, ticket),
                this.serializer.SerializeCountryBasket(model.Basket),
                this.serializer.SerializeExpression(model.Benchmark, ticket),
                this.serializer.SerializeExpression(model.Overlay, ticket),
                this.serializer.SerializeEditableExpression(model.PortfolioAdjustment),
                this.serializer.SerializeNullableExpression(model.PortfolioScaled, ticket),
                this.serializer.SerializeNullableExpression(model.TrueActive, ticket),
                this.serializer.SerializeNullableExpression(model.TrueExposure, ticket)
                );

            return(result);
        }
Esempio n. 2
0
 public void Resolve(Core.ManagingBpt.BasketCountryModel model)
 {
     this.Result = this.serializer.SerializeBasketCountry(model, ticket);
 }