public Wishlist WithOneBasketItem() { _wishlist = new Wishlist { BuyerId = WishlistBuyerId, Id = WishlistId }; _wishlist.AddItemToWishlist(2, "string", 4); return(_wishlist); }
public void AddsWishListItemIfNotPresent() { var wishList = new Wishlist(); wishList.AddItemToWishlist(_catalogItemId, _catalogItemName, _unitPrice); var firstItem = wishList.Items.Single(); Assert.Equal(_catalogItemId, firstItem.CatalogItemId); Assert.Equal(_catalogItemName, firstItem.CatalogItemName); Assert.Equal(_unitPrice, firstItem.UnitPrice); }