Esempio n. 1
0
        public CountryBasketModel SerializeCountryBasket(Core.ManagingBaskets.CountryBasket model)
        {
            var result = new CountryBasketModel(
                model.Id,
                this.SerializeCountry(model.Country)
                );

            return(result);
        }
Esempio n. 2
0
        public Boolean IsSecurityFromCountryBasket(ISecurity security, CountryBasket basket)
        {
            var stockOpt = security.TryAsCompanySecurity();

            if (stockOpt != null)
            {
                var result = basket.Country.IsoCode == stockOpt.Country.IsoCode;
                return(result);
            }
            else
            {
                return(false);
            }
        }
        public String RenderBasket(CountryBasket basket)
        {
            var result = basket.Country.Name + "(" + basket.Country.IsoCode + ")";

            return(result);
        }
 public void Resolve(CountryBasket basket)
 {
     this.Result = this.renderer.RenderBasket(basket);
 }
Esempio n. 5
0
 public String RenderBasket(CountryBasket basket)
 {
     return(basket.Country.Name + " (" + basket.Country.IsoCode + ")");
 }
Esempio n. 6
0
 public void Resolve(CountryBasket basket)
 {
     this.CountryBasketOpt = basket;
 }
Esempio n. 7
0
 public void Resolve(CountryBasket basket)
 {
     this.Result = this.investigator.IsSecurityFromCountryBasket(security, basket);
 }