Ejemplo n.º 1
0
    public void Can_set_and_retrieve_reference_by_key()
    {
        var record       = new CKRecord("record_type");
        var reference    = new CKReference(new CKRecord("record_type"), CKReferenceAction.DeleteSelf);
        var referenceKey = "reference_key";

        record.SetReference(reference, referenceKey);

        Assert.AreEqual(record.ReferenceForKey(referenceKey), reference);
    }