Exemplo n.º 1
0
        public void table_does_exist_then_exist_check_returns_true()
        {
            // Arrange
            _tableStorage.DeleteTable();

            // Act
            _tableStorage.CreateTable();

            // Assert
            _tableStorage.TableExists().Should().BeTrue();
        }
Exemplo n.º 2
0
 public static void SetupLotsOfRecords(int count, ITableStore <TestTableEntity> tableStorage)
 {
     tableStorage.CreateTable();
     for (var i = 0; i < count; i++)
     {
         var entry = new TestTableEntity($"name{i}", $"surname{count}")
         {
             Age = 32, Email = $"surname{count}@somewhere.com"
         };
         tableStorage.Insert(entry);
     }
 }
 public Functions(ITableStoreFactory tableFactory, IConfiguration config)
 {
     _table = tableFactory.CreateTableStore <LogEntity>("ExampleLogs", config["AzureWebJobsStorage"]);
     _table.CreateTable();
 }