Exemplo n.º 1
0
        public void CanDeleteToy()
        {
            Toy myEntityToDelete = myToyRepository.List().OrderByDescending(x => x.Id).First();
            int sizeInitial      = myToyRepository.List().Count();

            myToyRepository.Delete(myEntityToDelete);
            //var toysList = myToyRepository.List;
            int sizeFinal    = myToyRepository.List().Count();
            int sizeExpected = sizeInitial - 1;

            ////Assert
            Assert.AreEqual(sizeExpected, sizeFinal);
        }
Exemplo n.º 2
0
 public void Delete(int id)
 {
     Repo.Delete(id);
 }