public void DeleteTest() { ProductPhotoRepository repository = new ProductPhotoRepository(); ProductPhoto model = new ProductPhoto { PhotoID = 2 }; repository.Delete(model); var photos = repository.FindById(1); Assert.IsTrue(photos.Count() > 0); }
public void Delete(ProductPhoto model) { repository.Delete(model); }