Beispiel #1
0
 /// <summary>
 ///     初始化值对象测试样例
 /// </summary>
 public ValueObjectSample(string city, string street, AggregateRootSample sample, ValueObjectSample child)
 {
     City          = city;
     Street        = street;
     AggregateRoot = sample;
     Child         = child;
 }
Beispiel #2
0
 /// <summary>
 ///     初始化值对象测试样例
 /// </summary>
 public ValueObjectSample(string city, string street, AggregateRootSample sample)
     : this(city, street, sample, null)
 {
 }
Beispiel #3
0
 /// <summary>
 ///     初始化名称长度验证规则
 /// </summary>
 /// <param name="sample">聚合根测试样例</param>
 public ValidationRuleSample(AggregateRootSample sample)
 {
     _sample = sample;
 }