public ActionResult Index(Int64 id = 0)
{
ViewBag.Title = PresentationModel.GetViewTitleForTenant("Test Page", this.Session.GetTenant()); /*in the Vaiona.Web.Mvc.Models namespace*/ //String.Format("{0} {1} - {2}", AppConfiguration.ApplicationName, AppConfiguration.ApplicationVersion, "Test Page");
createDataset();
//removeContentDescriptor();
//testTenants();
//List<string> a = new List<string>() { "A", "B", "C" };
//List<string> b = new List<string>() { "A", "B", "D" };
//var ab = a.Union(b);
//dm.DatasetRepo.LoadIfNot(ds.Tuples);
////dm.DatasetRepo.Get(
//LoggerFactory.LogCustom("Hi, I am a custom message!");
//LoggerFactory.LogData(id.ToString(), typeof(Dataset).Name, Vaiona.Entities.Logging.CrudState.Deleted);
//LoggerFactory.LogDataRelation(id.ToString(), typeof(Dataset).Name, "20", typeof(DatasetVersion).Name, Vaiona.Entities.Logging.CrudState.Deleted);
//DatasetExportTest2();
//SimpleMatDematWithExport();
//Add2UnitsAnd1Conversion();
//Add2UnitsAnd1ConversionUsingAPI();
//saveDatset();
//string a = "this a book isolated";
//bool b = a.ContainsExact("is");
//testExtendedProperty();
//getDataset();
// Int64 dsId = 0;
// dsId = createDatasetVersion();
//editDatasetVersion(dsId);
//deleteTupleFromDatasetVersion(dsId);
//deleteDataset(dsId);
//purgeDataset(dsId);
//purgeAll();
//getAllDatasetVersions();
//addConstraintsTo();
//testMetadataStructure();
//testSecuirty();
//getEffectiveTuples(id);
//getDataStructures();
//return RedirectToAction("About");
//createMetadataAttribute();
//ObtainingMethodManager om = new ObtainingMethodManager();
//////Test Party Type Manager
////Add Party Type
//var partyType = addPartyType();
////removePartyType(partyType);
//var partyStatusType = addPartyStatusType(partyType);
//var cusAttr = addTestPartyCustomAttribute(partyType);
////removeTestPartyCustomAttribute(cusAttr);
//// removePartyStatusType(partyStatusType);
//////Create party
//Dlm.Services.Party.PartyManager partyManager = new Dlm.Services.Party.PartyManager();
///// Dlm.Services.Party.PartyRelationshipTypeManager pmr = new Dlm.Services.Party.PartyRelationshipTypeManager();
//var parties = new List<Dlm.Entities.Party.Party>();
//parties.Add(addTestParty(partyType, partyStatusType));
//parties.Add(addTestParty(partyType, partyStatusType));
//////update last test party
//updateTestParty(parties.Last().Id);
//////////deleteTestParty last test party
////////deleteTestParty(parties.First());
//////////Add custom attribute value
////var customAttrVal = addTestPartyCustomAttributeValue(parties.First(), cusAttr);
////removeTestPartyCustomAttributeValue(customAttrVal);
////// Create Party relationshiptype
//////in the same time of creating partyrelationshiptype partyType pairs created and add to that
//var partyReType = addTestPartyRelationshipType(partyType, partyType);
////removeTestPartyRelationshipType(partyReType);
////Add relation between two parties
////The other relation are for testing minimum and maximum cardinaity
//var partyRel = addTestPartyRelationship(parties.First(), parties.Last(), partyReType);
//// var partyRel2=addTestPartyRelationship(parties.First(), parties.Last(), partyReType);
//// var partyRel3=addTestPartyRelationship(parties.First(), parties.Last(), partyReType);
//// addTestPartyRelationship(parties.Last(), parties.First(), partyReType);
//removePartyRelationship(partyRel);
//// removePartyRelationship(partyRel2);
////removePartyRelationship(partyRel3);
//var partyPair = addTestPartyTypePair(partyType, addPartyType());
//// removeTestPartyTypePair(partyPair);
//var ps = addTestPartyStatus(parties.First());
////removeTestPartyStatus(ps);
//// deleteTestParty(parties.First());
return View();
}