共用方式為


TransactionalStateStorageTestRunner<TState> 建構函式

定義

多載

TransactionalStateStorageTestRunner<TState>(Func<Task<ITransactionalStateStorage<TState>>>, Func<TState>, IGrainFactory, Action<String>)

建構函式

TransactionalStateStorageTestRunner<TState>(Func<Task<ITransactionalStateStorage<TState>>>, Func<Int32,TState>, IGrainFactory, Action<String>, Func<EquivalencyAssertionOptions<TState>, EquivalencyAssertionOptions<TState>>)

建構函式

TransactionalStateStorageTestRunner<TState>(Func<Task<ITransactionalStateStorage<TState>>>, Func<TState>, IGrainFactory, Action<String>)

建構函式

protected TransactionalStateStorageTestRunner (Func<System.Threading.Tasks.Task<Orleans.Transactions.Abstractions.ITransactionalStateStorage<TState>>> stateStorageFactory, Func<TState> stateFactory, Orleans.IGrainFactory grainFactory, Action<string> testOutput);
new Orleans.Transactions.TestKit.TransactionalStateStorageTestRunner<'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 * Action<string> -> Orleans.Transactions.TestKit.TransactionalStateStorageTestRunner<'State (requires 'State : null and 'State :> Orleans.Transactions.TestKit.ITestState and 'State : (new : unit -> 'State))>
Protected Sub New (stateStorageFactory As Func(Of Task(Of ITransactionalStateStorage(Of TState))), stateFactory As Func(Of TState), grainFactory As IGrainFactory, testOutput As Action(Of String))

參數

stateStorageFactory
Func<Task<ITransactionalStateStorage<TState>>>

用來建立 ITransactionalStateStorage 的 Factory,測試執行器會假設在建立 ITransactionalStateStorage 時儲存體中的狀態是空的

stateFactory
Func<TState>

用來建立測試的 TState Factory

grainFactory
IGrainFactory

測試執行器所需的 grain Factory

testOutput
Action<String>

測試實用訊息的輸出

適用於

TransactionalStateStorageTestRunner<TState>(Func<Task<ITransactionalStateStorage<TState>>>, Func<Int32,TState>, IGrainFactory, Action<String>, Func<EquivalencyAssertionOptions<TState>, EquivalencyAssertionOptions<TState>>)

來源:
TransactionalStateStorageTestRunner.cs

建構函式

protected TransactionalStateStorageTestRunner (Func<System.Threading.Tasks.Task<Orleans.Transactions.Abstractions.ITransactionalStateStorage<TState>>> stateStorageFactory, Func<int,TState> stateFactory, Orleans.IGrainFactory grainFactory, Action<string> testOutput, Func<FluentAssertions.Equivalency.EquivalencyAssertionOptions<TState>,FluentAssertions.Equivalency.EquivalencyAssertionOptions<TState>> assertConfig = default);
new Orleans.Transactions.TestKit.TransactionalStateStorageTestRunner<'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 * Action<string> * Func<FluentAssertions.Equivalency.EquivalencyAssertionOptions<'State>, FluentAssertions.Equivalency.EquivalencyAssertionOptions<'State>> -> Orleans.Transactions.TestKit.TransactionalStateStorageTestRunner<'State (requires 'State : null and 'State : (new : unit -> 'State))>
Protected Sub New (stateStorageFactory As Func(Of Task(Of ITransactionalStateStorage(Of TState))), stateFactory As Func(Of Integer, TState), grainFactory As IGrainFactory, testOutput As Action(Of String), Optional assertConfig As Func(Of EquivalencyAssertionOptions(Of TState), EquivalencyAssertionOptions(Of TState)) = Nothing)

參數

stateStorageFactory
Func<Task<ITransactionalStateStorage<TState>>>

用來建立 ITransactionalStateStorage 的 Factory,測試執行器會假設在建立 ITransactionalStateStorage 時儲存體中的狀態是空的

stateFactory
Func<Int32,TState>

用來建立測試的 TState Factory

grainFactory
IGrainFactory

測試執行器所需的 grain Factory

testOutput
Action<String>

測試實用訊息的輸出

assertConfig
Func<FluentAssertions.Equivalency.EquivalencyAssertionOptions<TState>,FluentAssertions.Equivalency.EquivalencyAssertionOptions<TState>>

FluentAssertions.Equivalency.EquivalencyAssertionOptions'1 組態物件的參考,可用來影響比較物件圖形的方式

適用於