示例#1
0
 public void Write(BasketRegionNode node, XmlWriter writer)
 {
     writer.WriteElement("basket-region", delegate
     {
         writer.WriteAttribute("basketId", node.Basket.Id);
     });
 }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
 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);
 }
示例#8
0
 public void Resolve(BasketRegionNode node)
 {
     this.Result = this.copier.Copy(node);
 }
示例#9
0
        public BasketRegionNode Copy(BasketRegionNode node)
        {
            var result = new BasketRegionNode(node.Basket);

            return(result);
        }