コード例 #1
0
        public void AlterShoppingListItemDetailsTest()
        {
            var slItem = shoppingList.First();
            var sli    = new DependencyConfiguration().GetInstance <IMapper>().Map <Core.DTO.ShoppingListItem>(slItem);

            sli.Amount++;
            slService.AlterShoppingListItemDetails(currentUser.FamilyId, sli);
            Assert.AreEqual(sli.Amount, shoppingList.First(s => s.Id == slItem.Id).Amount);
        }