예제 #1
0
 public void CreateEntityShouldSucceed()
 {
     var testEntity = new TestTableEntity("john1", "smith") {Age = 21, Email = "*****@*****.**"};
     tableStorage.CreateEntity(testEntity);
     var result = tableStorage.GetEntitiesByRowKey("john1").ToList();
     Assert.True(result.Count > 0);
 }
예제 #2
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);
        }
예제 #3
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);
        }