UpdatesTestBase<TFixture, TTestStore> UpdatesTestBase(Of TFixture, TTestStore) Class

Definition

public abstract class UpdatesTestBase<TFixture, TTestStore> : IClassFixture<TFixture>, IDisposable where TFixture : UpdatesFixtureBase<TTestStore> where TTestStore : TestStore
Public MustInherit Class UpdatesTestBase(Of TFixture As UpdatesFixtureBase(Of TTestStore), TTestStore As TestStore)
    Inherits IClassFixture(Of TFixture)
    Implements IDisposable
Type Parameters
TFixture
TTestStore
Inheritance
System.ObjectSystem.Object
UpdatesTestBase<TFixture, TTestStore>UpdatesTestBase(Of TFixture, TTestStore)
Implements
System.IDisposableSystem.IDisposable

Constructors

UpdatesTestBase(TFixture) UpdatesTestBase(TFixture)

protected UpdatesTestBase(TFixture fixture)
Protected Sub New(fixture As TFixture)
Parameters
fixture
TFixture TFixture

Properties

Fixture Fixture

protected TFixture Fixture { get; }
Protected ReadOnly Property Fixture As TFixture
Value
TFixture TFixture

TestStore TestStore

protected TTestStore TestStore { get; }
Protected ReadOnly Property TestStore As TTestStore
Value
TTestStore TTestStore

UpdateConcurrencyMessage UpdateConcurrencyMessage

protected abstract string UpdateConcurrencyMessage { get; }
Protected MustOverride ReadOnly Property UpdateConcurrencyMessage As String
Value
System.String System.String

Methods

Can_remove_partial() Can_remove_partial()

public virtual void Can_remove_partial()
Public Overridable Sub Can_remove_partial

CreateContext() CreateContext()

protected UpdatesContext CreateContext()
Protected Function CreateContext As UpdatesContext
Returns

Dispose() Dispose()

public void Dispose()
Public Sub Dispose

ExecuteWithStrategyInTransaction(Action, Action) ExecuteWithStrategyInTransaction(Action(Of UpdatesContext), Action(Of UpdatesContext))

protected virtual void ExecuteWithStrategyInTransaction(Action<UpdatesContext> testOperation, Action<UpdatesContext> nestedTestOperation1 = null)
Protected Overridable Sub ExecuteWithStrategyInTransaction(testOperation As Action(Of UpdatesContext), nestedTestOperation1 As Action(Of UpdatesContext) = Nothing)
Parameters
testOperation
System.Action<UpdatesContext> System.Action(Of UpdatesContext)
nestedTestOperation1
System.Action<UpdatesContext> System.Action(Of UpdatesContext)

ExecuteWithStrategyInTransactionAsync(Func, Func) ExecuteWithStrategyInTransactionAsync(Func(Of UpdatesContext, Task), Func(Of UpdatesContext, Task))

protected virtual Task ExecuteWithStrategyInTransactionAsync(Func<UpdatesContext, Task> testOperation, Func<UpdatesContext, Task> nestedTestOperation1 = null)
Protected Overridable Function ExecuteWithStrategyInTransactionAsync(testOperation As Func(Of UpdatesContext, Task), nestedTestOperation1 As Func(Of UpdatesContext, Task) = Nothing) As Task
Parameters
testOperation
System.Func<UpdatesContext, System.Threading.Tasks.Task> System.Func(Of UpdatesContext, System.Threading.Tasks.Task)
nestedTestOperation1
System.Func<UpdatesContext, System.Threading.Tasks.Task> System.Func(Of UpdatesContext, System.Threading.Tasks.Task)
Returns
System.Threading.Tasks.Task System.Threading.Tasks.Task

Remove_partial_on_missing_record_throws() Remove_partial_on_missing_record_throws()

public virtual void Remove_partial_on_missing_record_throws()
Public Overridable Sub Remove_partial_on_missing_record_throws

Save_partial_update() Save_partial_update()

public virtual void Save_partial_update()
Public Overridable Sub Save_partial_update

Save_partial_update_on_missing_record_throws() Save_partial_update_on_missing_record_throws()

public virtual void Save_partial_update_on_missing_record_throws()
Public Overridable Sub Save_partial_update_on_missing_record_throws

SaveChanges_false_processes_all_tracked_entities_without_calling_AcceptAllChanges() SaveChanges_false_processes_all_tracked_entities_without_calling_AcceptAllChanges()

public virtual void SaveChanges_false_processes_all_tracked_entities_without_calling_AcceptAllChanges()
Public Overridable Sub SaveChanges_false_processes_all_tracked_entities_without_calling_AcceptAllChanges

SaveChanges_processes_all_tracked_entities() SaveChanges_processes_all_tracked_entities()

public virtual void SaveChanges_processes_all_tracked_entities()
Public Overridable Sub SaveChanges_processes_all_tracked_entities

SaveChangesAsync_false_processes_all_tracked_entities_without_calling_AcceptAllChanges() SaveChangesAsync_false_processes_all_tracked_entities_without_calling_AcceptAllChanges()

public Task SaveChangesAsync_false_processes_all_tracked_entities_without_calling_AcceptAllChanges()
Public Function SaveChangesAsync_false_processes_all_tracked_entities_without_calling_AcceptAllChanges As Task
Returns
System.Threading.Tasks.Task System.Threading.Tasks.Task

SaveChangesAsync_processes_all_tracked_entities() SaveChangesAsync_processes_all_tracked_entities()

public Task SaveChangesAsync_processes_all_tracked_entities()
Public Function SaveChangesAsync_processes_all_tracked_entities As Task
Returns
System.Threading.Tasks.Task System.Threading.Tasks.Task

UseTransaction(DatabaseFacade, IDbContextTransaction) UseTransaction(DatabaseFacade, IDbContextTransaction)

protected virtual void UseTransaction(DatabaseFacade facade, IDbContextTransaction transaction)
Protected Overridable Sub UseTransaction(facade As DatabaseFacade, transaction As IDbContextTransaction)
Parameters