Class ProtoExecutionContextExtensions
public static class ProtoExecutionContextExtensions
- Inheritance
-
ProtoExecutionContextExtensions
- Inherited Members
Methods
Sql(ProtoExecutionContext)
Gets the database session owned by this test execution. Throws naming the missing keys when the integration is inert: its AddressKeys are declared and none is provided.
public static ProtoSqlSession Sql(this ProtoExecutionContext context)
Parameters
contextProtoExecutionContext
Returns
SqlConnection(ProtoExecutionContext)
Gets the database connection owned by this test execution.
public static DbConnection SqlConnection(this ProtoExecutionContext context)
Parameters
contextProtoExecutionContext
Returns
SqlSession(ProtoExecutionContext)
Gets the database session owned by this test execution; the historical name of
Sql(ProtoExecutionContext), kept as a documented alias. Prefer Sql(), which
reads like the other protocol accessors.
public static ProtoSqlSession SqlSession(this ProtoExecutionContext context)
Parameters
contextProtoExecutionContext
Returns
SqlTransaction(ProtoExecutionContext)
public static DbTransaction? SqlTransaction(this ProtoExecutionContext context)
Parameters
contextProtoExecutionContext