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