public void DeleteTest() { //Arrange DBEstimatedPrice estimatedPrice = new DBEstimatedPrice(); int id = 666; //Act estimatedPrice.Delete(id); var sucess = estimatedPrice.Get(id); //Assert Assert.AreEqual(sucess.Id, 0); Assert.AreEqual(sucess.estimatedTime, 0); Assert.AreEqual(sucess.materials, null); }
public bool Delete(int id) { return(db.Delete(id)); }