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); }
public void Create(ProductPhoto model) { repository.Create(model); }