예제 #1
0
 public Order(OrderLimit limit)
 {
     _discountPolicy = DefaultPolicy();
     Id         = GenerateId();
     OrderLimit = limit;
 }
예제 #2
0
 public Order()
 {
     _discountPolicy = DefaultPolicy();
     Id         = GenerateId();
     OrderLimit = OrderLimit.Unlimited();
 }
예제 #3
0
 public Order findById(OrderId id)
 {
     return(_orders[id]);
 }
 public Order OrderById(OrderId orderId)
 {
     return(_repository.findById(orderId));
 }
예제 #5
0
 protected bool Equals(OrderId other)
 {
     return(Id.Equals(other.Id));
 }