Example #1
0
 public void T40_ProductT_r1_Delete()
 {
     Product pt = new Product();
     pt.RevBase.Name = "ProductT";
     pt.Revision = "r1";
     RevisionedObjectMaint mt = new RevisionedObjectMaint();
     Assert.IsTrue(mt.Remove(pt));
 }
Example #2
0
 public void T20_ProductT_r1_Update()
 {
     Product pt = new Product();
     pt.RevBase.Name = "ProductT";
     pt.Revision = "r1";
     pt.Description = "ProdcutT(r1) description updated at " + DateTime.Now.ToString();
     RevisionedObjectMaint mt = new RevisionedObjectMaint();
     Assert.IsTrue(mt.Update(pt));
 }
Example #3
0
 private static void AddProduct(string product_name, string product_revision)
 {
     Product pt = new Product();
     ProductBase pb = new ProductBase();
     pt.RevBase = pb;
     pt.RevBase.Name = product_name;
     pt.Revision = product_revision;
     pt.Description = DateTime.Now.ToString();
     RevisionedObjectMaint mt = new RevisionedObjectMaint();
     Assert.IsTrue(mt.Add(pt));
 }