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"); } }
public TableResult RepairRow(string partitionKey, string rowKey, IReplicatedTableEntity existingRow) { throw new NotImplementedException(); }
public TableResult FlushAndRetrieve(IReplicatedTableEntity row, TableRequestOptions requestOptions = null, OperationContext operationContext = null, bool virtualizeEtag = true) { throw new NotImplementedException(); }