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); }
public IEnumerable <INode> Traverse(UnsavedBasketCountryNode unsavedBasketCountry) { yield return(unsavedBasketCountry); }
public void Resolve(UnsavedBasketCountryNode unsavedBasketCountry) { this.Result = this.traverser.Traverse(unsavedBasketCountry); }