Example #1
0
        public void UpdateEntity_Ok()
        {
            //Arrange
            var tableEntity = new DynamicTableEntity();

            tableEntity.ETag          = "*";
            var(cloudTableMock, pool) =
                CreateTablePoolWithMockForExecute(tableEntity, TableOperationType.Merge, SetupExecute);

            //Act & Assert
            cloudTableMock.Verify();
            TableStorageHelpers.UpdateEntity(pool, tableEntity)
            .Should()
            .Be(tableEntity);
        }