protected void When(UserEvents.UserHasNewWishListItem @event)
        {
            if (MyWishListIsEmpty())
            {
                _wishList = new List <WishListItem>();
            }

            var item = new WishListItem(ApplyChange);

            item.Route(@event);
            _wishList.Add(item);
        }
示例#2
0
 protected void When(UserEvents.UserHasNewWishListItem newWishListItem)
 {
     Id      = new WishListItemId(newWishListItem.WishListItemId);
     RestoId = new RestaurantId(newWishListItem.RestaurantId);
 }