Exemplo n.º 1
0
 public void T50_Enterprise_Dump_With_Factory()
 {
     Enterprise ent = new Enterprise();
     ent.Name = "UO Soft Company";
     NamedObjectMaint mt = new NamedObjectMaint();
     Assert.IsTrue(mt.Dump(ent));
 }
Exemplo n.º 2
0
 public void T30_Enterprise_Delete()
 {
     Enterprise ent = new Enterprise();
     ent.Name = "Eric";
     NamedObjectMaint mt = new NamedObjectMaint();
     Assert.IsTrue(mt.Remove(ent));
 }
Exemplo n.º 3
0
 public void T20_Enterprise_Update()
 {
     Enterprise ent = new Enterprise();
     ent.Name = "Eric";
     ent.ReportHeading = "Eric Guo Reporting Heading Updated at " + DateTime.Now.ToString();
     NamedObjectMaint mt = new NamedObjectMaint();
     Assert.IsTrue(mt.Update(ent));
 }
Exemplo n.º 4
0
 public void T10_Enterprise_Add()
 {
     Enterprise ent = new Enterprise();
     ent.Name = "Eric";
     ent.Description = DateTime.Now.ToString();
     ent.ReportHeading = "Eric Guo Reporting Heading";
     NamedObjectMaint mt = new NamedObjectMaint();
     Assert.IsTrue(mt.Add(ent));
 }
Exemplo n.º 5
0
 public void T40_Enterprise_Add_With_Factory()
 {
     Enterprise ent = new Enterprise();
     ent.Name = "UO Soft Company";
     ent.Description = DateTime.Now.ToString();
     ent.ReportHeading = "UO Soft Reporting Heading";
     Factory f1 = new Factory();
     f1.Name = "Factory 1";
     f1.Description = "Description for Factory 1";
     Factory f2 = new Factory();
     f2.Name = "Factory 2";
     f2.Description = "Description for Factory 2";
     ent.Factories.Add(f1);
     ent.Factories.Add(f2);
     NamedObjectMaint mt = new NamedObjectMaint();
     Assert.IsTrue(mt.Add(ent));
 }
Exemplo n.º 6
0
 public void T70_Enterprise_Update_With_Factory()
 {
     Enterprise ent = new Enterprise();
     ent.Name = "UO Soft Company";
     ent.ReportHeading = "Updated UO Soft Reporting Heading";
     Factory f1 = new Factory();
     f1.Name = "Factory 1";
     f1.Description = "Description for Updated Factory 1"; // Exist NDO will only add, not update it's description
     Factory f2 = new Factory();
     f2.Name = "Updated Factory 2";
     f2.Description = "Description for Updated Factory 2";
     ent.Factories.Add(f1);
     ent.Factories.Add(f2);
     NamedObjectMaint mt = new NamedObjectMaint();
     Assert.IsTrue(mt.Update(ent));
 }
Exemplo n.º 7
0
 public void T80_Enterprise_Delete()
 {
     Enterprise ent = new Enterprise();
     ent.Name = "UO Soft Company";
     NamedObjectMaint mt = new NamedObjectMaint();
     Assert.IsTrue(mt.Remove(ent));
 }