public Order(OrderLimit limit) { _discountPolicy = DefaultPolicy(); Id = GenerateId(); OrderLimit = limit; }
public Order() { _discountPolicy = DefaultPolicy(); Id = GenerateId(); OrderLimit = OrderLimit.Unlimited(); }
public Order findById(OrderId id) { return(_orders[id]); }
public Order OrderById(OrderId orderId) { return(_repository.findById(orderId)); }
protected bool Equals(OrderId other) { return(Id.Equals(other.Id)); }