public void _Inserts_Bulk_Records() { _setup.CheckSetUp(); int qty = 10000; var newTransactions = _setup.getSkinnyTransactionSet(qty); var model = new SQLServerTable <Transaction>(_connectionStringName, _testTableName, _tablePkColumn); int inserted = model.BulkInsert(newTransactions); Assert.True(inserted == qty); }
public void _Selects_Singles_Anonymous_Record_By_PK() { _setup.CheckSetUp(); int qty = 100; var newTransactions = _setup.getSkinnyTransactionSet(qty); var model = new SQLServerTable <Transaction>(_connectionStringName, _testTableName, _tablePkColumn); int inserted = model.BulkInsert(newTransactions); int findRecordPk = 50; var newRecord = model.Find <Transaction>(findRecordPk); Assert.True(newRecord != null); }