コード例 #1
0
        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);
        }
コード例 #2
0
 public void Delete(ProductPhoto model)
 {
     repository.Delete(model);
 }