Beispiel #1
0
        public void SetItems(ICollection <OrderItem> items)
        {
            Items = items;

            TotalPoints = Items.Sum(d => d.Points);

            Delivery = new Delivery
            {
                DueDate = DeliveryServices.EstimateDueDateForAddress(User.Address),
                Address = DeliveryAddress.FromEntity(User.Address)
            };
        }