public AggregateNameAggregate(Guid id) { this.state = new AggregateNameAggregateState { Id = id }; this.isNew = true; }
public AggregateNameAggregate(AggregateNameAggregateState state) { this.state = state ?? throw new ArgumentNullException(nameof(state)); this.isNew = false; }
public AggregateNameAggregate Create(AggregateNameAggregateState state) { return(new AggregateNameAggregate(state)); }