コード例 #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);
 }