TransactionalStateStorageTestRunnerxUnit<TState> Construtores
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
TransactionalStateStorageTestRunnerxUnit<TState>(Func<Task<ITransactionalStateStorage<TState>>>, Func<TState>, IGrainFactory, ITestOutputHelper)
Construtor
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)
Parâmetros
- stateStorageFactory
- Func<Task<ITransactionalStateStorage<TState>>>
para criar ITransactionalStateStorage, o executor de teste está assumindo que o estado no armazenamento está vazio quando ITransactionalStateStorage foi criado
- stateFactory
- Func<TState>
factory para criar o TState para teste
- grainFactory
- IGrainFactory
grain Factory necessário para o executor de teste
- testOutput
- Xunit.Abstractions.ITestOutputHelper
testar a saída para mensagens úteis
Aplica-se a
TransactionalStateStorageTestRunnerxUnit<TState>(Func<Task<ITransactionalStateStorage<TState>>>, Func<Int32,TState>, IGrainFactory, ITestOutputHelper, Func<EquivalencyAssertionOptions<TState>, EquivalencyAssertionOptions<TState>>)
Construtor
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)
Parâmetros
- stateStorageFactory
- Func<Task<ITransactionalStateStorage<TState>>>
para criar ITransactionalStateStorage, o executor de teste está assumindo que o estado no armazenamento está vazio quando ITransactionalStateStorage foi criado
- grainFactory
- IGrainFactory
grain Factory necessário para o executor de teste
- testOutput
- Xunit.Abstractions.ITestOutputHelper
testar a saída para mensagens úteis
- assertConfig
- Func<FluentAssertions.Equivalency.EquivalencyAssertionOptions<TState>,FluentAssertions.Equivalency.EquivalencyAssertionOptions<TState>>
Uma referência ao objeto de configuração FluentAssertions.Equivalency.EquivalencyAssertionOptions'1 que pode ser usado para influenciar a forma como os grafos de objeto são comparados