コード例 #1
0
        protected override async Task <DataTable[]> RunProxiedDbDataAdapterAsync(List <TestTable> randomDataSource, FakeProxiedDbDataAdapter adapter)
        {
            DataTable[] tables = new DataTable[5]
            {
                new DataTable(tableName: "Foo", tableNamespace: "NS1"),
                new DataTable(tableName: "Bar", tableNamespace: "NS1"),
                new DataTable(tableName: "Baz", tableNamespace: "NS1"),
                new DataTable(tableName: "Qux", tableNamespace: "NS1"),
                new DataTable(tableName: "Tux", tableNamespace: "NS1")
            };

            Int32 rowsInFirstTable = await adapter.Fill5Async(startRecord : 0, maxRecords : 0, dataTables : tables);

            rowsInFirstTable.ShouldBe(40);

            return(tables);
        }