public void with_promise_and_create_handle_should_be_linked_to_document_1() { _writer.Promise(_handle1, 1); _writer.CreateIfMissing(_handle1, null, 1); _writer.LinkDocument(_handle1, _doc1, 2); var h = _writer.FindOneById(_handle1); Assert.AreEqual(_doc1, h.DocumentDescriptorId); }
public void On(DocumentLinked e) { _writer.LinkDocument( e.Handle, e.DocumentId, e.CheckpointToken ); }