Example #1
0
 public Category(string name, string description)
 {
     State = new CategoryState
     {
         Id          = SequencialGuidGenerator.NewSequentialGuid(),
         Name        = name,
         Description = description
     };
 }
Example #2
0
 public static Category ToCategory(CategoryState state)
 {
     return(new Category(state));
 }
Example #3
0
 internal Category(CategoryState state)
 {
     State = state;
 }