Freigeben über


TransactionalStateStorageTestRunnerxUnit<TState> Konstruktoren

Definition

Überlädt

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

Konstruktor

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

Konstruktor

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

Konstruktor

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)

Parameter

stateStorageFactory
Func<Task<ITransactionalStateStorage<TState>>>

Factory zum Erstellen von ITransactionalStateStorage, der Testläufer wird davon ausgegangen, dass der Zustand im Speicher leer ist, wenn ITransactionalStateStorage erstellt wurde.

stateFactory
Func<TState>

factory to create TState for test

grainFactory
IGrainFactory

Getreidefabrik für Testläufer erforderlich

testOutput
Xunit.Abstractions.ITestOutputHelper

Testen der Ausgabe für hilfreiche Nachrichten

Gilt für:

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

Quelle:
TransactionalStateStorageTestRunner.cs
Quelle:
TransactionalStateStorageTestRunner.cs
Quelle:
TransactionalStateStorageTestRunner.cs
Quelle:
TransactionalStateStorageTestRunner.cs
Quelle:
TransactionalStateStorageTestRunner.cs

Konstruktor

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)

Parameter

stateStorageFactory
Func<Task<ITransactionalStateStorage<TState>>>

Factory zum Erstellen von ITransactionalStateStorage, der Testläufer wird davon ausgegangen, dass der Zustand im Speicher leer ist, wenn ITransactionalStateStorage erstellt wurde.

stateFactory
Func<Int32,TState>

factory to create TState for test

grainFactory
IGrainFactory

Getreidefabrik für Testläufer erforderlich

testOutput
Xunit.Abstractions.ITestOutputHelper

Testen der Ausgabe für hilfreiche Nachrichten

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

Ein Verweis auf das FluentAssertions.Equivalency.EquivalencyAssertionOptions'1-Konfigurationsobjekt, das verwendet werden kann, um die Art und Weise zu beeinflussen, wie die Objektdiagramme verglichen werden.

Gilt für: