public void Write(BasketRegionNode node, XmlWriter writer) { writer.WriteElement("basket-region", delegate { writer.WriteAttribute("basketId", node.Basket.Id); }); }
protected BasketRegionNode ReadBasketRegionNode(IElement element, BasketRepository basketRepository) { var basketId = element.ReadAttributeAsInt32("basketId"); var basket = basketRepository.GetBasket(basketId).AsRegionBasket(); var result = new BasketRegionNode(basket); return(result); }
protected BasketRegionNode ReadBasketRegionNode(BasketRepository basketRepository, IElement element) { var basketId = element.ReadAttributeAsInt32("basketId"); var basket = basketRepository.GetBasket(basketId).AsRegionBasket(); var name = element.ReadAttributeAsNotEmptyString("name"); var result = new BasketRegionNode(basket); return(result); }
public void Resolve(BasketRegionNode node) { this.parent.Write(node, writer); }
public void Resolve(BasketRegionNode node) { this.Result = this.traverser.TraverseBasketRegion(node); }
public IEnumerable <INode> TraverseBasketRegion(BasketRegionNode basketRegionNode) { yield return(basketRegionNode); }
public void Resolve(BasketRegionNode basketRegion) { this.Result = basketRegion.Basket.Countries.Select(x => x.IsoCode); }
public void Resolve(BasketRegionNode node) { this.Result = this.copier.Copy(node); }
public BasketRegionNode Copy(BasketRegionNode node) { var result = new BasketRegionNode(node.Basket); return(result); }