public void TableBatchInsertFailSync()
        {
            IReplicatedTableEntity ent = GenerateRandomEnitity("foo");

            // add entity
            this.repTable.Execute(TableOperation.Insert(ent));

            TableBatchOperation batch = new TableBatchOperation();

            batch.Insert(ent);

            OperationContext opContext = new OperationContext();

            try
            {
                this.repTable.ExecuteBatch(batch, null, opContext);
                Assert.Fail("We should be reach here. Calling Insert() again should throw an exception.");
            }
            catch (StorageException)
            {
                TestHelper.ValidateResponse(opContext, 1, (int)HttpStatusCode.Conflict, new string[] { "EntityAlreadyExists" }, "The specified entity already exists");
            }
        }
Ejemplo n.º 2
0
 public TableResult RepairRow(string partitionKey, string rowKey, IReplicatedTableEntity existingRow)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 3
0
 public TableResult FlushAndRetrieve(IReplicatedTableEntity row, TableRequestOptions requestOptions = null, OperationContext operationContext = null, bool virtualizeEtag = true)
 {
     throw new NotImplementedException();
 }