public void CreateSqlServerBulkUpdateByConnection() { using (var conn = new SqlConnection()) { var factory = new SqlServerBulkActionFactory(conn); var bulkUpdate = factory.GetBulkUpdate() as SqlServerBulkUpdate; bulkUpdate.Should().NotBeNull(); } }
public void CreateSqlServerBulkInsertByConnection() { using (var conn = new SqlConnection()) { var factory = new SqlServerBulkActionFactory(conn); var bulkInsert = factory.GetBulkInsert(SqlBulkCopyOptions.UseInternalTransaction) as SqlServerBulkInsert; bulkInsert.BulkCopyOptions.Should().Be(SqlBulkCopyOptions.UseInternalTransaction); } }