protected Core.ManagingBpt.UnsavedBasketCountryModel DeserializeUnsavedBasketCountry(UnsavedBasketCountryModel model, Core.ManagingBpt.Computations computations) { var country = this.deserializer.DeserializeCountry(model.Country); var baseExpression = this.modelBuilder.CreateBaseExpression(); this.deserializer.PopulateEditableExpression(baseExpression, model.Base); var portfolioAdjustmentExpression = this.modelBuilder.CreatePortfolioAdjustmentExpression(); this.deserializer.PopulateEditableExpression(portfolioAdjustmentExpression, model.PortfolioAdjustment); var result = this.modelBuilder.CreateUnsavedBasketModel( country, computations, baseExpression, portfolioAdjustmentExpression ); this.deserializer.PopulateUnchangableExpression(result.Benchmark, model.Benchmark); this.deserializer.PopulateUnchangableExpression(result.Overlay, model.Overlay); return(result); }
public void Resolve(UnsavedBasketCountryModel model) { throw new InvalidOperationException(); }