示例#1
0
 public void Default()
 {
     // watchOS does not allow `init` so we need to ensure that our default .ctor
     // match the existing `init*` with null values (so we can remove it)
     using (var mrzo = new CKModifyRecordZonesOperation()) {
         Assert.That(op.RecordZonesToSave, Is.EqualTo(mrzo.RecordZonesToSave), "RecordZonesToSave");
         Assert.That(op.RecordZoneIdsToDelete, Is.EqualTo(mrzo.RecordZoneIdsToDelete), "RecordZoneIdsToDelete");
         Assert.That(op.Completed, Is.EqualTo(mrzo.Completed), "Completed");
     }
 }
    private void DeleteZone()
    {
        // you can delete and eniter zone, thereby deleting every record within it
        Debug.Log("Deleting Record Zone...");
        var op = new CKModifyRecordZonesOperation(null, new CKRecordZoneID[] { customZone.ZoneID });

        op.Configuration.QualityOfService     = NSQualityOfService.UserInitiated;
        op.ModifyRecordZonesCompletionHandler = OnZoneDeleted;
        database.AddOperation(op);
    }
示例#3
0
 public void SetUp()
 {
     TestRuntime.AssertXcodeVersion(6, 0);
     TestRuntime.AssertSystemVersion(ApplePlatform.MacOSX, 10, 10, throwIfOtherPlatform: false);
     op = new CKModifyRecordZonesOperation(null, null);
 }
示例#4
0
 public void SetUp()
 {
     TestRuntime.AssertXcodeVersion(6, 0);
     op = new CKModifyRecordZonesOperation(null, null);
 }