C# 클래스 Cart, code

상속: System.Web.UI.Page
파일 보기 프로젝트 열기: shendongnian/code 1 사용 예제들

공개 메소드들

메소드 설명
Add ( Product, product, Quantity, quantity ) : void
CanAdd ( Product product, Quantity quantity ) : Result
CanCloseForCheckout ( ) : Result
Cart ( EntityId customerId )
CloseForCheckout ( ) : void
Remove ( Product product ) : void
Remove ( Product product, Quantity quantity ) : void
ToString ( ) : string

메소드 상세

Add() 공개 메소드

public Add ( Product, product, Quantity, quantity ) : void
product Product,
quantity Quantity,
리턴 void

CanAdd() 공개 메소드

public CanAdd ( Product product, Quantity quantity ) : Result
product Product
quantity Quantity
리턴 Result

CanCloseForCheckout() 공개 메소드

public CanCloseForCheckout ( ) : Result
리턴 Result

Cart() 공개 메소드

public Cart ( EntityId customerId )
customerId EntityId

CloseForCheckout() 공개 메소드

public CloseForCheckout ( ) : void
리턴 void

Remove() 공개 메소드

public Remove ( Product product ) : void
product Product
리턴 void

Remove() 공개 메소드

public Remove ( Product product, Quantity quantity ) : void
product Product
quantity Quantity
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string