Examples of OrderDetailsCommand


Examples of pl.com.bottega.ecommerce.sales.application.api.command.OrderDetailsCommand

    AggregateId orderId = orderingService.createOrder();
    orderingService.addProduct(orderId, new AggregateId("p1"), 1);
    orderingService.addProduct(orderId, new AggregateId("p2"), 20);
    Offer offer = orderingService.calculateOffer(orderId);
   
    orderingService.confirm(orderId, new OrderDetailsCommand(), offer);
  }
View Full Code Here

Examples of pl.com.bottega.ecommerce.sales.application.api.command.OrderDetailsCommand

    Offer offer = orderingService.calculateOffer(orderId);
    //change order
    orderingService.addProduct(orderId, new AggregateId("p2"), 30);
    //confirm obsolete offer
    try{
      orderingService.confirm(orderId, new OrderDetailsCommand(), offer);
      Assert.fail();
    }
    catch(OfferChangedExcpetion e){}
  }
View Full Code Here

Examples of pl.com.bottega.ecommerce.sales.application.api.command.OrderDetailsCommand

    AddProdctCommand cmd = new AddProdctCommand(orderId, new AggregateId("p1"), 1);   
    gate.dispatch(cmd);
   
    Offer offer = orderingService.calculateOffer(orderId);
   
    orderingService.confirm(orderId, new OrderDetailsCommand(), offer);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.