예제 #1
0
 public void Cleanup()
 {
     using (var ctx = TestCommon.CreateTenantClientContext())
     {
         Tenant tenant = new Tenant(ctx);
         tenant.DeleteSiteCollection(_site1Url, false);
         tenant.DeleteSiteCollection(_site2Url, false);
     }
 }
예제 #2
0
 public static void Cleanup()
 {
     using (var ctx = TestCommon.CreateTenantClientContext())
     {
         Tenant tenant = new Tenant(ctx);
         // For any accidents lets allow for recoverability
         tenant.DeleteSiteCollection(_site1Url, true);
         tenant.DeleteSiteCollection(_site2Url, true);
     }
 }