C# Class Agathas.Storefront.Shopping.Model.Baskets.Basket

Show file Open project: elbandit/PPPDDD Class Usage Examples

Public Methods

Method Description
Basket ( System.Guid id ) : System
add ( Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot product_snapshot, IBasketPricingService basket_pricing_service ) : void
apply ( Promotion promotion, IBasketPricingService basket_pricing_service ) : void
change_quantity_of_product ( NonNegativeQuantity quantity, Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot product_snapshot, IBasketPricingService basket_pricing_service ) : void
contains_product ( bool>.Func func ) : bool
remove_coupon ( string coupon_code, IBasketPricingService basket_pricing_service ) : void
remove_product_with_id_of ( Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot product, IBasketPricingService basket_pricing_service ) : void

Private Methods

Method Description
Basket ( ) : System
basket_contains_an_item_for ( Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot product_snapshot ) : bool
get_item_for ( Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot product_snapshot ) : BasketItem
recalculate_basket_totals ( IBasketPricingService basket_pricing_service ) : void

Method Details

Basket() public method

public Basket ( System.Guid id ) : System
id System.Guid
return System

add() public method

public add ( Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot product_snapshot, IBasketPricingService basket_pricing_service ) : void
product_snapshot Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot
basket_pricing_service IBasketPricingService
return void

apply() public method

public apply ( Promotion promotion, IBasketPricingService basket_pricing_service ) : void
promotion Promotion
basket_pricing_service IBasketPricingService
return void

change_quantity_of_product() public method

public change_quantity_of_product ( NonNegativeQuantity quantity, Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot product_snapshot, IBasketPricingService basket_pricing_service ) : void
quantity NonNegativeQuantity
product_snapshot Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot
basket_pricing_service IBasketPricingService
return void

contains_product() public method

public contains_product ( bool>.Func func ) : bool
func bool>.Func
return bool

remove_coupon() public method

public remove_coupon ( string coupon_code, IBasketPricingService basket_pricing_service ) : void
coupon_code string
basket_pricing_service IBasketPricingService
return void

remove_product_with_id_of() public method

public remove_product_with_id_of ( Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot product, IBasketPricingService basket_pricing_service ) : void
product Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot
basket_pricing_service IBasketPricingService
return void