TransactionalStateStorageTestRunnerxUnit<TState> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
TransactionalStateStorageTestRunnerxUnit<TState>(Func<Task<ITransactionalStateStorage<TState>>>, Func<TState>, IGrainFactory, ITestOutputHelper)
构造函数
public TransactionalStateStorageTestRunnerxUnit (Func<System.Threading.Tasks.Task<Orleans.Transactions.Abstractions.ITransactionalStateStorage<TState>>> stateStorageFactory, Func<TState> stateFactory, Orleans.IGrainFactory grainFactory, Xunit.Abstractions.ITestOutputHelper testOutput);
new Orleans.Transactions.TestKit.xUnit.TransactionalStateStorageTestRunnerxUnit<'State (requires 'State : null and 'State :> Orleans.Transactions.TestKit.ITestState and 'State : (new : unit -> 'State))> : Func<System.Threading.Tasks.Task<Orleans.Transactions.Abstractions.ITransactionalStateStorage<'State>>> * Func<'State (requires 'State : null and 'State :> Orleans.Transactions.TestKit.ITestState and 'State : (new : unit -> 'State))> * Orleans.IGrainFactory * Xunit.Abstractions.ITestOutputHelper -> Orleans.Transactions.TestKit.xUnit.TransactionalStateStorageTestRunnerxUnit<'State (requires 'State : null and 'State :> Orleans.Transactions.TestKit.ITestState and 'State : (new : unit -> 'State))>
Public Sub New (stateStorageFactory As Func(Of Task(Of ITransactionalStateStorage(Of TState))), stateFactory As Func(Of TState), grainFactory As IGrainFactory, testOutput As ITestOutputHelper)
参数
- stateStorageFactory
- Func<Task<ITransactionalStateStorage<TState>>>
用于创建 ITransactionalStateStorage 的工厂,测试运行程序假定在创建 ITransactionalStateStorage 时存储中的状态为空
- stateFactory
- Func<TState>
用于创建用于测试的 TState 的工厂
- grainFactory
- IGrainFactory
测试运行程序所需的粒度工厂
- testOutput
- Xunit.Abstractions.ITestOutputHelper
测试输出到有用的消息
适用于
TransactionalStateStorageTestRunnerxUnit<TState>(Func<Task<ITransactionalStateStorage<TState>>>, Func<Int32,TState>, IGrainFactory, ITestOutputHelper, Func<EquivalencyAssertionOptions<TState>, EquivalencyAssertionOptions<TState>>)
构造函数
public TransactionalStateStorageTestRunnerxUnit (Func<System.Threading.Tasks.Task<Orleans.Transactions.Abstractions.ITransactionalStateStorage<TState>>> stateStorageFactory, Func<int,TState> stateFactory, Orleans.IGrainFactory grainFactory, Xunit.Abstractions.ITestOutputHelper testOutput, Func<FluentAssertions.Equivalency.EquivalencyAssertionOptions<TState>,FluentAssertions.Equivalency.EquivalencyAssertionOptions<TState>> assertConfig = default);
new Orleans.Transactions.TestKit.xUnit.TransactionalStateStorageTestRunnerxUnit<'State (requires 'State : null and 'State : (new : unit -> 'State))> : Func<System.Threading.Tasks.Task<Orleans.Transactions.Abstractions.ITransactionalStateStorage<'State>>> * Func<int, 'State (requires 'State : null and 'State : (new : unit -> 'State))> * Orleans.IGrainFactory * Xunit.Abstractions.ITestOutputHelper * Func<FluentAssertions.Equivalency.EquivalencyAssertionOptions<'State>, FluentAssertions.Equivalency.EquivalencyAssertionOptions<'State>> -> Orleans.Transactions.TestKit.xUnit.TransactionalStateStorageTestRunnerxUnit<'State (requires 'State : null and 'State : (new : unit -> 'State))>
Public Sub New (stateStorageFactory As Func(Of Task(Of ITransactionalStateStorage(Of TState))), stateFactory As Func(Of Integer, TState), grainFactory As IGrainFactory, testOutput As ITestOutputHelper, Optional assertConfig As Func(Of EquivalencyAssertionOptions(Of TState), EquivalencyAssertionOptions(Of TState)) = Nothing)
参数
- stateStorageFactory
- Func<Task<ITransactionalStateStorage<TState>>>
用于创建 ITransactionalStateStorage 的工厂,测试运行程序假定在创建 ITransactionalStateStorage 时存储中的状态为空
- grainFactory
- IGrainFactory
测试运行程序所需的粒度工厂
- testOutput
- Xunit.Abstractions.ITestOutputHelper
测试输出到有用的消息
- assertConfig
- Func<FluentAssertions.Equivalency.EquivalencyAssertionOptions<TState>,FluentAssertions.Equivalency.EquivalencyAssertionOptions<TState>>
对 FluentAssertions.Equivalency.EquivalencyAssertionOptions'1 配置对象的引用,可用于影响比较对象图的方式