public void Insert(string TerritoryID,string TerritoryDescription,int RegionID)
        {
            Territory item = new Territory();

            item.TerritoryID = TerritoryID;

            item.TerritoryDescription = TerritoryDescription;

            item.RegionID = RegionID;

            item.Save(UserName);
        }
        public void Update(string TerritoryID,string TerritoryDescription,int RegionID)
        {
            Territory item = new Territory();
            item.MarkOld();
            item.IsLoaded = true;

            item.TerritoryID = TerritoryID;

            item.TerritoryDescription = TerritoryDescription;

            item.RegionID = RegionID;

            item.Save(UserName);
        }
 public static void Setup(int testItems) {
     SetTestRepo();
     for(int i=0;i<testItems;i++){
         Territory item=new Territory();
         _testRepo._items.Add(item);
     }
 }
 public static void Setup(Territory item) {
     SetTestRepo();
     _testRepo._items.Add(item);
 }
 public bool Destroy(object TerritoryID)
 {
     return(Territory.Destroy(TerritoryID) == 1);
 }
 public bool Delete(object TerritoryID)
 {
     return(Territory.Delete(TerritoryID) == 1);
 }