次の方法で共有


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 を作成するファクトリでは、ITransactionalStateStorage が作成されたときに、テスト ランナーはストレージ内の状態が空であると想定しています

stateFactory
Func<TState>

テスト用の TState を作成するファクトリ

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 を作成するファクトリでは、ITransactionalStateStorage が作成されたときに、テスト ランナーはストレージ内の状態が空であると想定しています

stateFactory
Func<Int32,TState>

テスト用の TState を作成するファクトリ

grainFactory
IGrainFactory

テスト ランナーに必要な grain Factory

testOutput
Action<String>

役に立つメッセージへの出力をテストする

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

オブジェクト グラフの比較方法に影響を与えるために使用できる FluentAssertions.Equivalency.EquivalencyAssertionOptions'1 構成オブジェクトへの参照

適用対象