예제 #1
0
 public void Write(BasketCountryNode node, XmlWriter writer)
 {
     writer.WriteElement("basket-country", delegate
     {
         writer.WriteAttribute("basketId", node.Basket.Id);
     });
 }
예제 #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);
        }
예제 #3
0
 public IEnumerable <INode> TraverseBasketCountry(BasketCountryNode basketCountryNode)
 {
     yield return(basketCountryNode);
 }
예제 #4
0
 public void Resolve(BasketCountryNode node)
 {
     this.parent.Write(node, writer);
 }
예제 #5
0
 public void Resolve(BasketCountryNode node)
 {
     this.Result = this.traverser.TraverseBasketCountry(node);
 }
 public void Resolve(BasketCountryNode basketCountry)
 {
     this.Result = new String[] { basketCountry.Basket.Country.IsoCode };
 }
예제 #7
0
 public void Resolve(BasketCountryNode basketCountry)
 {
     this.Result = this.traverser.Traverse(basketCountry);
 }
예제 #8
0
        public BasketCountryNode Copy(BasketCountryNode node)
        {
            var result = new BasketCountryNode(node.Basket);

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