Bewerken

Delen via


TransactionalStateStorageTestRunner<TState> Constructors

Definition

Overloads

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

Constructor

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

Constructor

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

Constructor

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))

Parameters

stateStorageFactory
Func<Task<ITransactionalStateStorage<TState>>>

factory to create ITransactionalStateStorage, the test runner are assuming the state in storage is empty when ITransactionalStateStorage was created

stateFactory
Func<TState>

factory to create TState for test

grainFactory
IGrainFactory

grain Factory needed for test runner

testOutput
Action<String>

test output to helpful messages

Applies to

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

Source:
TransactionalStateStorageTestRunner.cs

Constructor

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)

Parameters

stateStorageFactory
Func<Task<ITransactionalStateStorage<TState>>>

factory to create ITransactionalStateStorage, the test runner are assuming the state in storage is empty when ITransactionalStateStorage was created

stateFactory
Func<Int32,TState>

factory to create TState for test

grainFactory
IGrainFactory

grain Factory needed for test runner

testOutput
Action<String>

test output to helpful messages

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

A reference to the FluentAssertions.Equivalency.EquivalencyAssertionOptions`1 configuration object that can be used to influence the way the object graphs are compared

Applies to