ExistsTable() public method

public ExistsTable ( string tablename ) : TableStorageBoolResponse
tablename string
return TableStorageBoolResponse
Beispiel #1
0
 public void CreateTableIsSuccessful()
 {
     ts.DeleteTable(test_table);
     HttpUtils.Wait(long_wait);
     ts.CreateTable(test_table);
     HttpUtils.Wait(short_wait);
     Assert.IsTrue((bool)ts.ExistsTable(test_table).boolean);
 }
Beispiel #2
0
        public void SecureCreateEntityIsSuccessful()
        {
            secure_ts.DeleteEntity(test_table, test_partition, test_row);
            HttpUtils.Wait(short_wait);
            if (secure_ts.ExistsTable(test_table).boolean == false)
            {
                secure_ts.CreateTable(test_table);
            }
            var entity = new Dictionary <string, object>();

            entity.Add("PartitionKey", test_partition);
            entity.Add("RowKey", test_row);
            foreach (var key in test_dict.Keys)
            {
                entity.Add(key, test_dict[key]);
            }
            Assert.AreEqual(HttpStatusCode.Created, secure_ts.InsertEntity(test_table, entity).http_response.status);
        }