public void ValueShouldBeSetCorrectly() { var objectVersionId = Guid.NewGuid() + "::" + Guid.NewGuid() + "::" + 1; string path = "test"; var id = new LocatableRef() { Id = new ObjectVersionId(objectVersionId), Path = path }; Assert.AreEqual("ehr://" + objectVersionId + "/" + path, id.ToUri()); }
public InstructionDetails(LocatableRef instructionId, string activityId, ItemStructure wfDetails) : this() { Check.Require(instructionId != null, "instruction_id must not be null"); Check.Require(!string.IsNullOrEmpty(activityId), "activity_id must not be null or empty"); this.instructionId = instructionId; this.activityId = activityId; this.wfDetails = wfDetails; if (this.wfDetails != null) { this.wfDetails.Parent = this; } SetAttributeDictionary(); }