public void Delete() { int test = 0; //ProductsProps p = (ProductsProps)db.Retrieve(); List <ProductsProps> temp = (List <ProductsProps>)db.RetrieveAll(test.GetType()); for (int i = 0; i < temp.Count(); i++) { if (temp[i].code == "TEST") { Assert.True(db.Delete(db.Retrieve(temp[i].ID))); } } }