Exemple #1
0
        public void ShoulDeleteItemNotification()
        {
            // arrange
            Item             item         = PrepareItem("name", "descritpion", TODAY, false);
            ItemNotification notification = PrepareItemNotification(item, TODAY, false);

            dbContext.Items.Add(item);
            dbContext.ItemNotifications.Add(notification);
            dbContext.SaveChanges();

            // act
            itemNotificationRepository.Delete(notification);

            // assert
            ItemNotification returnedItemNotification = itemNotificationRepository.FindByItemId(item.Id);

            Assert.IsNull(returnedItemNotification);
        }
 public void DeleteItemNotification(ItemNotification itemNotification)
 {
     itemNotificationRepository.Delete(itemNotification);
 }