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