다음을 통해 공유


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

Source:
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 구성 개체에 대한 참조입니다.

적용 대상