示例#1
0
 public Basket ToBasket(BasketId id, int maxSize) => new Basket(id, BasketState.Create(Lines.Select(l => l.ToBasketLine()), maxSize));
示例#2
0
 public Basket ToBasket(int maxSize) => new Basket(new BasketId(Id), BasketState.Create(Lines.Select(l => l.ToLine()), maxSize));