C# Class RestBucks.Orders.Domain.Order

Inheritance: EntityBase, IValidable
Exibir arquivo Open project: horsdal/Restbucks-on-Nancy

Public Methods

Method Description
AddItem ( OrderItem orderItem ) : void
Cancel ( string cancelReason ) : void
Finish ( ) : void
GetErrorMessages ( ) : IEnumerable
Order ( ) : System
Pay ( string cardNumber, string cardOwner ) : void

Method Details

AddItem() public method

public AddItem ( OrderItem orderItem ) : void
orderItem OrderItem
return void

Cancel() public method

public Cancel ( string cancelReason ) : void
cancelReason string
return void

Finish() public method

public Finish ( ) : void
return void

GetErrorMessages() public method

public GetErrorMessages ( ) : IEnumerable
return IEnumerable

Order() public method

public Order ( ) : System
return System

Pay() public method

public Pay ( string cardNumber, string cardOwner ) : void
cardNumber string
cardOwner string
return void