Beispiel #1
0
        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);
        }
Beispiel #2
0
 public void Update(ProductPhoto model)
 {
     repository.Update(model);
 }