public void ShouldDeleteCartRecord()
 {
     var item = _repo.Find(0, 32);
     _repo.Context.Entry(item).State = EntityState.Detached;
     _repo.Delete(item.Id, item.TimeStamp);
     Assert.Empty(_repo.GetAll());
 }
Exemplo n.º 2
0
        public void ShouldDeleteCartRecord()
        {
            ShoppingCartRecord item = _repo.Find(0, 32);

            _repo.Context.Entry(item).State = EntityState.Detached;
            _repo.Delete(item.Id, item.TimeStamp);
            Assert.Equal(0, _repo.GetAll().Count());
        }