Пример #1
0
        protected UnsavedBasketCountryNode ReadUnsavedBasketCountry(IElement element)
        {
            var name    = element.ReadAttributeAsNotEmptyString("name");
            var isoCode = element.ReadAttributeAsNotEmptyString("iso-code");
            var country = new Country(isoCode, name);
            var result  = new UnsavedBasketCountryNode(country);

            return(result);
        }
Пример #2
0
 public IEnumerable <INode> Traverse(UnsavedBasketCountryNode unsavedBasketCountry)
 {
     yield return(unsavedBasketCountry);
 }
Пример #3
0
 public void Resolve(UnsavedBasketCountryNode unsavedBasketCountry)
 {
     this.Result = this.traverser.Traverse(unsavedBasketCountry);
 }