Example #1
0
        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);
        }
Example #2
0
 public bool Delete(int id)
 {
     return(db.Delete(id));
 }