public void Write(BasketCountryNode node, XmlWriter writer) { writer.WriteElement("basket-country", delegate { writer.WriteAttribute("basketId", node.Basket.Id); }); }
protected BasketCountryNode ReadBasketCountryNode(IElement element, BasketRepository basketRepository) { var basketId = element.ReadAttributeAsInt32("basketId"); var basket = basketRepository.GetBasket(basketId).AsCountryBasket(); var result = new BasketCountryNode(basket); return(result); }
public IEnumerable <INode> TraverseBasketCountry(BasketCountryNode basketCountryNode) { yield return(basketCountryNode); }
public void Resolve(BasketCountryNode node) { this.parent.Write(node, writer); }
public void Resolve(BasketCountryNode node) { this.Result = this.traverser.TraverseBasketCountry(node); }
public void Resolve(BasketCountryNode basketCountry) { this.Result = new String[] { basketCountry.Basket.Country.IsoCode }; }
public void Resolve(BasketCountryNode basketCountry) { this.Result = this.traverser.Traverse(basketCountry); }
public BasketCountryNode Copy(BasketCountryNode node) { var result = new BasketCountryNode(node.Basket); return(result); }
public void Resolve(BasketCountryNode node) { this.Result = this.copier.Copy(node); }