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)
Afficher le fichier Open project: beingtheworst/btw-gtd Class Usage Examples

Méthodes publiques

Méthode Description
ChangeDescription ( string newDescriptionOfStuff ) : void
StuffInfo ( StuffId id, string stuffDescription ) : System

Method Details

ChangeDescription() public méthode

public ChangeDescription ( string newDescriptionOfStuff ) : void
newDescriptionOfStuff string
Résultat void

StuffInfo() public méthode

public StuffInfo ( StuffId id, string stuffDescription ) : System
id StuffId
stuffDescription string
Résultat System