C# Class RefactoringGolf.Store.OrderItem

Show file Open project: snahider/Refactoring-Golf Class Usage Examples

Public Methods

Method Description
OrderItem ( Product product, int quantity )
Total ( ) : decimal
UnitPricePerQuantity ( ) : decimal

Private Methods

Method Description
CreateCategoryDiscount ( ) : ICategoryDiscount

Method Details

OrderItem() public method

public OrderItem ( Product product, int quantity )
product Product
quantity int

Total() public method

public Total ( ) : decimal
return decimal

UnitPricePerQuantity() public method

public UnitPricePerQuantity ( ) : decimal
return decimal