C# Class Gtd.Pcl.CoreDomain.AppServices.TrustedSystem.StuffInfo

These "Info" objects maintain only invariants within themselves. Invariants between entities are maintained by the state. This helps to achieve more encapsulated code. This code is pleasant to work with and we know that there will be no side effects. Rules/biz logic can be enforced in this class and they will not be broken by outside or new parties/developers to the code. (ex: if Action is Archived then its current Completion state must never change)
ファイルを表示 Open project: beingtheworst/btw-gtd Class Usage Examples

Public Methods

Method Description
ChangeDescription ( string newDescriptionOfStuff ) : void
StuffInfo ( StuffId id, string stuffDescription ) : System

Method Details

ChangeDescription() public method

public ChangeDescription ( string newDescriptionOfStuff ) : void
newDescriptionOfStuff string
return void

StuffInfo() public method

public StuffInfo ( StuffId id, string stuffDescription ) : System
id StuffId
stuffDescription string
return System