C# Class Cashier.Service.MicroServices.Order.Domain.Order

Inheritance: Aggregate
Exibir arquivo Open project: rbanks54/microcafe

Public Methods

Method Description
Order ( System.Guid id, System.Guid productId, int quantity ) : System
PayForOrder ( int originalVersion ) : void

Private Methods

Method Description
Apply ( OrderPaidFor e ) : void
Apply ( OrderPlaced e ) : void
Order ( ) : System
ValidateVersion ( int version ) : void

Method Details

Order() public method

public Order ( System.Guid id, System.Guid productId, int quantity ) : System
id System.Guid
productId System.Guid
quantity int
return System

PayForOrder() public method

public PayForOrder ( int originalVersion ) : void
originalVersion int
return void