Beispiel #1
0
 public void Write(BasketCountryNode node, XmlWriter writer)
 {
     writer.WriteElement("basket-country", delegate
     {
         writer.WriteAttribute("basketId", node.Basket.Id);
     });
 }
Beispiel #2
0
        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);
 }
Beispiel #4
0
 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 };
 }
Beispiel #7
0
 public void Resolve(BasketCountryNode basketCountry)
 {
     this.Result = this.traverser.Traverse(basketCountry);
 }
Beispiel #8
0
        public BasketCountryNode Copy(BasketCountryNode node)
        {
            var result = new BasketCountryNode(node.Basket);

            return(result);
        }
Beispiel #9
0
 public void Resolve(BasketCountryNode node)
 {
     this.Result = this.copier.Copy(node);
 }