Esempio n. 1
0
 public NameExampleAggregate(
     ExampleAggregateId exampleAggregateId,
     ExampleAggregateName exampleAggregateName)
 {
     ExampleAggregateId   = exampleAggregateId;
     ExampleAggregateName = exampleAggregateName;
 }
        public ExampleAggregateWasNamed(
            ExampleAggregateId exampleAggregateId,
            ExampleAggregateName exampleAggregateName)
        {
            ExampleAggregateId = exampleAggregateId;

            Language = exampleAggregateName.Language;
            Name     = exampleAggregateName.Name;
        }
 public void NameExampleAggregate(ExampleAggregateName exampleAggregateName)
 {
     ApplyChange(new ExampleAggregateWasNamed(_exampleAggregateId, exampleAggregateName));
 }