Partager via


TransactionalStateStorageTestRunnerxUnit<TState> Constructeurs

Définition

Surcharges

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

Constructeur

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

Constructeur

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

Constructeur

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)

Paramètres

stateStorageFactory
Func<Task<ITransactionalStateStorage<TState>>>

factory pour créer ITransactionalStateStorage, l’exécuteur de test suppose que l’état dans le stockage est vide lors de la création d’ITransactionalStateStorage

stateFactory
Func<TState>

factory pour créer TState pour le test

grainFactory
IGrainFactory

grain Factory nécessaire pour l’exécuteur de test

testOutput
Xunit.Abstractions.ITestOutputHelper

sortie de test vers des messages utiles

S’applique à

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

Source:
TransactionalStateStorageTestRunner.cs
Source:
TransactionalStateStorageTestRunner.cs
Source:
TransactionalStateStorageTestRunner.cs
Source:
TransactionalStateStorageTestRunner.cs
Source:
TransactionalStateStorageTestRunner.cs

Constructeur

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)

Paramètres

stateStorageFactory
Func<Task<ITransactionalStateStorage<TState>>>

factory pour créer ITransactionalStateStorage, l’exécuteur de test suppose que l’état dans le stockage est vide lors de la création d’ITransactionalStateStorage

stateFactory
Func<Int32,TState>

factory pour créer TState pour le test

grainFactory
IGrainFactory

grain Factory nécessaire pour l’exécuteur de test

testOutput
Xunit.Abstractions.ITestOutputHelper

sortie de test vers des messages utiles

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

Référence à l’objet de configuration FluentAssertions.Equivalency.EquivalencyAssertionOptions'1 qui peut être utilisée pour influencer la façon dont les graphiques d’objets sont comparés

S’applique à