Package pl.com.bottega.ecommerce.sales.application.api.command

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


 
  @Test
  public void shouldPurchaseProducts(){
    AggregateId orderId = orderingService.createOrder();
   
    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

Related Classes of pl.com.bottega.ecommerce.sales.application.api.command.AddProdctCommand

Copyright © 2018 www.massapicom. 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.