C# Class Sample.Domain.InventoryItem

Inheritance: AggregateRoot
Afficher le fichier Open project: thedersen/DDDCourse

Méthodes publiques

Méthode Description
Activate ( ) : void
AdjustInventoryCount ( int adjustBy ) : void
ChangeDetails ( string name, string description ) : void
Deactivate ( ) : void
InventoryItem ( System.Guid id ) : System
InventoryItem ( System.Guid id, string name, string description, int count, bool isActive ) : System

Private Methods

Méthode Description
ApplyInventoryItemActivatedEvent ( InventoryItemActivatedEvent e ) : void
ApplyInventoryItemCountAdjustedEvent ( InventoryItemCountAdjustedEvent e ) : void
ApplyInventoryItemCreatedEvent ( InventoryItemCreatedEvent e ) : void
ApplyInventoryItemDeactivatedEvent ( InventoryItemDeactivatedEvent e ) : void
ApplyInventoryItemDetailsChangedEvent ( InventoryItemDetailsChangedEvent e ) : void

Method Details

Activate() public méthode

public Activate ( ) : void
Résultat void

AdjustInventoryCount() public méthode

public AdjustInventoryCount ( int adjustBy ) : void
adjustBy int
Résultat void

ChangeDetails() public méthode

public ChangeDetails ( string name, string description ) : void
name string
description string
Résultat void

Deactivate() public méthode

public Deactivate ( ) : void
Résultat void

InventoryItem() public méthode

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

InventoryItem() public méthode

public InventoryItem ( System.Guid id, string name, string description, int count, bool isActive ) : System
id System.Guid
name string
description string
count int
isActive bool
Résultat System