Exemple #1
0
        public void SearchDocument()
        {
            var client = DynamoV1Client.Login(DynamoUri, UserName, Password, Tenant);

            SearchDocumentResponseItem[] documentResults =
                client.SearchDocumentsContinuous("friday OR letter OR event OR fund").Take(20).ToArray();

            Assert.AreEqual(13, documentResults.Length);
        }
Exemple #2
0
        public void SearchDocumentNextToken()
        {
            var client          = DynamoV1Client.Login(DynamoUri, UserName, Password, Tenant);
            var documentResults =
                client.SearchDocuments("friday OR letter OR event OR fund");

            Assert.IsNotNull(documentResults.NextToken);
            Assert.AreEqual(10, documentResults.Items.Length);
        }
Exemple #3
0
        public void test_CreateContact()
        {
            var client  = DynamoV1Client.Login(DynamoUri, UserName, Password, Tenant);
            var client2 = DynamoV1Client.Login(DynamoUri, "opa", Password, Tenant);

            var newItem = new Dictionary <string, string>();

            newItem.Add("dynamoId", "");
            newItem.Add("es", "");
        }
Exemple #4
0
 public void InvalidLogin()
 {
     try
     {
         DynamoV1Client.Login(DynamoUri, "Invalid User Name", "Invalid Password", Tenant);
         Assert.Fail();
     }
     catch (WebException)
     {
     }
 }
Exemple #5
0
 public void ValidLogin()
 {
     DynamoV1Client.Login(DynamoUri, UserName, Password, Tenant);
 }