共用方式為


TransactionalStateStorageTestRunnerxUnit<TState> 建構函式

定義

多載

TransactionalStateStorageTestRunnerxUnit<TState>(Func<Task<ITransactionalStateStorage<TState>>>, Func<TState>, IGrainFactory, ITestOutputHelper)

建構函式

TransactionalStateStorageTestRunnerxUnit<TState>(Func<Task<ITransactionalStateStorage<TState>>>, Func<Int32,TState>, IGrainFactory, ITestOutputHelper, Func<EquivalencyAssertionOptions<TState>, EquivalencyAssertionOptions<TState>>)

建構函式

TransactionalStateStorageTestRunnerxUnit<TState>(Func<Task<ITransactionalStateStorage<TState>>>, Func<TState>, IGrainFactory, ITestOutputHelper)

建構函式

public TransactionalStateStorageTestRunnerxUnit (Func<System.Threading.Tasks.Task<Orleans.Transactions.Abstractions.ITransactionalStateStorage<TState>>> stateStorageFactory, Func<TState> stateFactory, Orleans.IGrainFactory grainFactory, Xunit.Abstractions.ITestOutputHelper testOutput);
new Orleans.Transactions.TestKit.xUnit.TransactionalStateStorageTestRunnerxUnit<'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 * Xunit.Abstractions.ITestOutputHelper -> Orleans.Transactions.TestKit.xUnit.TransactionalStateStorageTestRunnerxUnit<'State (requires 'State : null and 'State :> Orleans.Transactions.TestKit.ITestState and 'State : (new : unit -> 'State))>
Public Sub New (stateStorageFactory As Func(Of Task(Of ITransactionalStateStorage(Of TState))), stateFactory As Func(Of TState), grainFactory As IGrainFactory, testOutput As ITestOutputHelper)

參數

stateStorageFactory
Func<Task<ITransactionalStateStorage<TState>>>

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

stateFactory
Func<TState>

Factory 以建立測試的 TState

grainFactory
IGrainFactory

測試執行器所需的細微性處理站

testOutput
Xunit.Abstractions.ITestOutputHelper

測試輸出至有用的訊息

適用於

TransactionalStateStorageTestRunnerxUnit<TState>(Func<Task<ITransactionalStateStorage<TState>>>, Func<Int32,TState>, IGrainFactory, ITestOutputHelper, Func<EquivalencyAssertionOptions<TState>, EquivalencyAssertionOptions<TState>>)

來源:
TransactionalStateStorageTestRunner.cs
來源:
TransactionalStateStorageTestRunner.cs
來源:
TransactionalStateStorageTestRunner.cs
來源:
TransactionalStateStorageTestRunner.cs
來源:
TransactionalStateStorageTestRunner.cs

建構函式

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

參數

stateStorageFactory
Func<Task<ITransactionalStateStorage<TState>>>

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

stateFactory
Func<Int32,TState>

Factory 以建立測試的 TState

grainFactory
IGrainFactory

測試執行器所需的細微性處理站

testOutput
Xunit.Abstractions.ITestOutputHelper

測試輸出至有用的訊息

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

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

適用於