コード例 #1
0
        public void CreateEntitiesShouldSucceed()
        {
            var testEntity1 = new TestTableEntity("john", "smith2")
            {
                Age = 21, Email = "*****@*****.**"
            };
            var testEntity2 = new TestTableEntity("john1", "smith2")
            {
                Age = 21, Email = "*****@*****.**"
            };
            var entityList = new List <TestTableEntity> {
                testEntity1, testEntity2
            };

            tableStorage.CreateEntities(entityList);

            var result = tableStorage.GetEntitiesByPartitionKey("smith2").ToList();

            Assert.True(result.Count > 0);
        }