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); }
public void SetUp() { TestRuntime.AssertXcodeVersion(6, 0); TestRuntime.AssertSystemVersion(ApplePlatform.MacOSX, 10, 10, throwIfOtherPlatform: false); op = new CKModifyRecordZonesOperation(null, null); }
public void SetUp() { TestRuntime.AssertXcodeVersion(6, 0); op = new CKModifyRecordZonesOperation(null, null); }