public string Test(NsiEntity pEntity) { // Get test entity EntityTest entityTest = CreateNsiElement(pEntity); Console.WriteLine("Test entity " + pEntity.ToString()); // Do test action if (pEntity.ActionEquals("add")) { // entityTest.setPosition(); return(entityTest.Add()); } else if (pEntity.ActionEquals("edit")) { // entityTest.setPosition(); entityTest.Edit(); } else if (pEntity.ActionEquals("delete")) { // entityTest.setPosition(); entityTest.Delete(); } else if (pEntity.ActionEquals("repair")) { // entityTest.setPosition(); entityTest.Repair(); } else { } return(""); }
private EntityTest CreateNsiElement(NsiEntity pEntity) { EntityTest entityTest = null; // TODO: add other using types if (pEntity.Type.Equals("class")) { entityTest = new ClassTest(pEntity); } else if (pEntity.Type.Equals("attrclass")) { entityTest = new AttributeClassTest(pEntity); } else { } return(entityTest); }
public RequestTest(NsiEntity pEntity) : base(pEntity) { }
public ClassTest(NsiEntity pEntity) : base(pEntity) { setPositionPageAction(new PositionPageClass(NoModalPage.GetCurrentPage())); setPosition(); }
public AttributeClassTest(NsiEntity pEntity) : base(pEntity) { setPositionPageAction(new PositionPageClassAttr/*PositionPageClassAttrExt*/ (NoModalPage.GetCurrentPage())); setPosition(); }
public EntityTest(NsiEntity pEntity) { this.Entity = pEntity; }