public void UpdateTest() { ProductPhotoRepository repository = new ProductPhotoRepository(); ProductPhoto model = new ProductPhoto { PhotoID = 1, ProductID = 1, PhotoPath = "a" }; repository.Update(model); var photos = repository.FindById(1); Assert.IsTrue(photos.Count() > 0); }
public void Update(ProductPhoto model) { repository.Update(model); }