public void CanDiscoverFeaturesWhileInsideTransaction() { using (IDbConnection connection = db.GetConnection()) { connection.Open(); IDbTransaction transaction = connection.BeginTransaction(); DBCommandWrapper storedProcedure = db.GetStoredProcCommandWrapper("CustOrdersOrders", "ALFKI"); storedProcedure.Command.Connection = transaction.Connection; storedProcedure.Command.Transaction = transaction; storedProcedure.DiscoverParameters('@'); Assert.AreEqual(2, storedProcedure.Command.Parameters.Count); } }