ForceDelete() public method

public ForceDelete ( ) : void
return void
Beispiel #1
0
 public void Site_SiteUrl_Insert()
 {
     var originalSite = new Site(Repository.Root);
     originalSite.UrlList.Add("mytestinterneturl", "Forms");
     var originalSiteUrlList = originalSite.UrlList;
     originalSite.Save();
     var site = Node.Load<Site>(originalSite.Id);
     var b = site.UrlList.Count == originalSiteUrlList.Count;
     originalSite.ForceDelete();
     Assert.IsTrue(b, "Site url list are NOT equal.");
 }
Beispiel #2
0
 public void Site_SiteUrl_InsertWithDictionary()
 {
     var originalSite = new Site(Repository.Root);
     originalSite.UrlList = new Dictionary<string, string>(originalSite.UrlList) { { "mytestinterneturl2", "Forms" } };
     var originalSiteUrlList = originalSite.UrlList;
     originalSite.Save();
     var site = Node.Load<Site>(originalSite.Id);
     bool b = site.UrlList.Count == originalSiteUrlList.Count;
     originalSite.ForceDelete();
     Assert.IsTrue(b, "Site url list are NOT equal.");
 }