test/TableAccessIntegrationTests.cs
/// <summary>
/// Should be able to find via a property.
/// </summary>
/// <returns>A task.</returns>
Should be able to find via a property.
Should be able to find via a property .
[Fact]
        public async Task CanFindByProperty()
        {
            string targetProperty = "Name";
            string targetValue = "Findable with get single";
            string targetRow = "query1";
            TestEntity foundItem = null;
            bool threw = false;
            try
            {
                foundItem = await this.sut.FindFirstRowWithProperty(targetRow, targetProperty, targetValue);
            }
            catch (NotFoundException)
            {
                threw = true;
            }
            catch (StorageException)
            {
                threw = true;
            }
            Assert.False(threw);
            Assert.NotNull(foundItem);
            Assert.Equal("test", foundItem.PartitionKey);
        }
[ Fact ] public async Task CanFindByProperty ( ) { string targetProperty = " " ; string targetValue = " " ; string targetRow = " " ; TestEntity foundItem = null ; bool threw = false ; try { foundItem = await this . sut . FindFirstRowWithProperty ( targetRow , targetProperty , targetValue ) ; } catch ( NotFoundException ) { threw = true ; } catch ( StorageException ) { threw = true ; } Assert . False ( threw ) ; Assert . NotNull ( foundItem ) ; Assert . Equal ( " " , foundItem . PartitionKey ) ; }
Should be able to find via a property.
Should be able to find via a property .
// Arrange // Act // Assert
None