示例#1
0
        public void CreateTest()
        {
            ProductPhotoRepository repository = new ProductPhotoRepository();
            ProductPhoto           model      = new ProductPhoto
            {
                ProductID = 1,
                PhotoPath = "url"
            };

            repository.Create(model);
            var photos = repository.FindById(1);

            Assert.IsTrue(photos.Count() == 4);
        }
示例#2
0
 public void Create(ProductPhoto model)
 {
     repository.Create(model);
 }