C# Class Sample.Domain.InventoryItem

Inheritance: AggregateRoot
Show file Open project: thedersen/DDDCourse

Public Methods

Method 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

Method 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 method

public Activate ( ) : void
return void

AdjustInventoryCount() public method

public AdjustInventoryCount ( int adjustBy ) : void
adjustBy int
return void

ChangeDetails() public method

public ChangeDetails ( string name, string description ) : void
name string
description string
return void

Deactivate() public method

public Deactivate ( ) : void
return void

InventoryItem() public method

public InventoryItem ( System.Guid id ) : System
id System.Guid
return System

InventoryItem() public method

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
return System