Поделиться через


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

Фабрика зерна, необходимая для средства выполнения тестов

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

Фабрика зерна, необходимая для средства выполнения тестов

testOutput
Action<String>

тестирование выходных данных в полезных сообщениях

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

Ссылка на объект конфигурации FluentAssertions.Equivalency.EquivalencyAssertionOptions'1, который можно использовать для влияния на способ сравнения графов объектов.

Применяется к