コード例 #1
0
        public void MarkShoppingListItemAsBoughtTest()
        {
            var sl = slService.GetFamilyShoppingList(currentUser.FamilyId).First();

            slService.MarkShoppingListItemAsBought(currentUser.FamilyId, sl.Id);
            Assert.IsInstanceOfType(sl, typeof(Core.DTO.ShoppingListItem));
            Assert.IsFalse(slService.GetFamilyShoppingList(currentUser.FamilyId).Any(sli => sli.Id == sl.Id));
        }