C# Class Admin.Service.MicroServices.Products.Domain.Product

Inheritance: Aggregate
Afficher le fichier Open project: rbanks54/microcafe Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode Description
Apply ( ProductCreated e ) : void
Apply ( ProductDescriptionChanged e ) : void
Apply ( ProductNameChanged e ) : void
Apply ( ProductPriceChanged e ) : void
Product ( ) : System

Method Details

ChangeDescription() public méthode

public ChangeDescription ( string newDescription, int originalVersion ) : void
newDescription string
originalVersion int
Résultat void

ChangeName() public méthode

public ChangeName ( string newName, int originalVersion ) : void
newName string
originalVersion int
Résultat void

ChangePrice() public méthode

public ChangePrice ( decimal newPrice, int originalVersion ) : void
newPrice decimal
originalVersion int
Résultat void

Product() public méthode

public Product ( System.Guid id, string name, string description, decimal price ) : System
id System.Guid
name string
description string
price decimal
Résultat System

ValidateName() public méthode

public ValidateName ( string name ) : void
name string
Résultat void

ValidateVersion() public méthode

public ValidateVersion ( int version ) : void
version int
Résultat void