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

Afficher le fichier Open project: elbandit/PPPDDD Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Basket ( System.Guid id ) : System
id System.Guid
Résultat System

add() public méthode

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
Résultat void

apply() public méthode

public apply ( Promotion promotion, IBasketPricingService basket_pricing_service ) : void
promotion Promotion
basket_pricing_service IBasketPricingService
Résultat void

change_quantity_of_product() public méthode

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
Résultat void

contains_product() public méthode

public contains_product ( bool>.Func func ) : bool
func bool>.Func
Résultat bool

remove_coupon() public méthode

public remove_coupon ( string coupon_code, IBasketPricingService basket_pricing_service ) : void
coupon_code string
basket_pricing_service IBasketPricingService
Résultat void

remove_product_with_id_of() public méthode

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
Résultat void