public void GuidHandleToStringIsGuid() { // Arrange Guid testGuid = Guid.NewGuid(); DocumentHandle guidHandle = new DocumentHandle(testGuid); // Act string ans = guidHandle.ToString(); // Assert Assert.AreEqual <string>(testGuid.ToString(), ans, "string should be the guid handle"); }
public void NameHandleToStringIsName() { // Arrange string testName = "test"; DocumentHandle nameHandle = new DocumentHandle(testName); // Act string ans = nameHandle.ToString(); // Assert Assert.AreEqual <string>(testName, ans, "string should be the name handle"); }
private Uri GenerateUriForGetJobs(DocumentHandle handle) { return(new Uri(_documentStoreUri, "queue/getJobs/" + Tenant + "/" + handle.ToString())); }