C# 클래스 Admin.Service.MicroServices.Products.Domain.Product

상속: Aggregate
파일 보기 프로젝트 열기: rbanks54/microcafe 1 사용 예제들

공개 메소드들

메소드 설명
ChangeDescription ( string newDescription, int originalVersion ) : void
ChangeName ( string newName, int originalVersion ) : void
ChangePrice ( decimal newPrice, int originalVersion ) : void
Product ( System.Guid id, string name, string description, decimal price ) : System
ValidateName ( string name ) : void
ValidateVersion ( int version ) : void

비공개 메소드들

메소드 설명
Apply ( ProductCreated e ) : void
Apply ( ProductDescriptionChanged e ) : void
Apply ( ProductNameChanged e ) : void
Apply ( ProductPriceChanged e ) : void
Product ( ) : System

메소드 상세

ChangeDescription() 공개 메소드

public ChangeDescription ( string newDescription, int originalVersion ) : void
newDescription string
originalVersion int
리턴 void

ChangeName() 공개 메소드

public ChangeName ( string newName, int originalVersion ) : void
newName string
originalVersion int
리턴 void

ChangePrice() 공개 메소드

public ChangePrice ( decimal newPrice, int originalVersion ) : void
newPrice decimal
originalVersion int
리턴 void

Product() 공개 메소드

public Product ( System.Guid id, string name, string description, decimal price ) : System
id System.Guid
name string
description string
price decimal
리턴 System

ValidateName() 공개 메소드

public ValidateName ( string name ) : void
name string
리턴 void

ValidateVersion() 공개 메소드

public ValidateVersion ( int version ) : void
version int
리턴 void