C# Класс Gtd.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)
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ChangeDescription ( string newDescriptionOfStuff ) : void
StuffInfo ( StuffId id, string stuffDescription ) : System

Описание методов

ChangeDescription() публичный Метод

public ChangeDescription ( string newDescriptionOfStuff ) : void
newDescriptionOfStuff string
Результат void

StuffInfo() публичный Метод

public StuffInfo ( StuffId id, string stuffDescription ) : System
id StuffId
stuffDescription string
Результат System