Exemplo n.º 1
0
        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");
        }
Exemplo n.º 2
0
        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");
        }
Exemplo n.º 3
0
 private Uri GenerateUriForGetJobs(DocumentHandle handle)
 {
     return(new Uri(_documentStoreUri, "queue/getJobs/" + Tenant + "/" + handle.ToString()));
 }