public void add_test() { EfProductDal productDal = new EfProductDal(); var product = new Product { CategoryId = 1, ProductName = "test2", QuantityPerUnit = "15", UnitPrice = 87 }; var result = productDal.Add(product); Assert.AreEqual(4, result.ProductId); }
public void Add(Product product) { _productDal.Add(product); }