Show / Hide Table of Contents

Class TestUnitOfWork

Inheritance
object
UnitOfWork
TestUnitOfWork
Implements
IUnitOfWork
IDatabaseApiContainer
IServiceProviderAccessor
ITransactionApiContainer
IDisposable
ITransientDependency
Inherited Members
UnitOfWork.UnitOfWorkReservationName
UnitOfWork.Initialize(AbpUnitOfWorkOptions)
UnitOfWork.Reserve(string)
UnitOfWork.SetOuter(IUnitOfWork)
UnitOfWork.SaveChangesAsync(CancellationToken)
UnitOfWork.GetAllActiveDatabaseApis()
UnitOfWork.GetAllActiveTransactionApis()
UnitOfWork.RollbackAsync(CancellationToken)
UnitOfWork.FindDatabaseApi(string)
UnitOfWork.AddDatabaseApi(string, IDatabaseApi)
UnitOfWork.GetOrAddDatabaseApi(string, Func<IDatabaseApi>)
UnitOfWork.FindTransactionApi(string)
UnitOfWork.AddTransactionApi(string, ITransactionApi)
UnitOfWork.GetOrAddTransactionApi(string, Func<ITransactionApi>)
UnitOfWork.OnCompleted(Func<Task>)
UnitOfWork.AddOrReplaceLocalEvent(UnitOfWorkEventRecord, Predicate<UnitOfWorkEventRecord>)
UnitOfWork.AddOrReplaceDistributedEvent(UnitOfWorkEventRecord, Predicate<UnitOfWorkEventRecord>)
UnitOfWork.GetEventsRecords(List<KeyValuePair<UnitOfWorkEventRecord, Predicate<UnitOfWorkEventRecord>>>)
UnitOfWork.OnCompletedAsync()
UnitOfWork.OnFailed()
UnitOfWork.OnDisposed()
UnitOfWork.Dispose()
UnitOfWork.RollbackAllAsync(CancellationToken)
UnitOfWork.CommitTransactionsAsync(CancellationToken)
UnitOfWork.ToString()
UnitOfWork.EnableObsoleteDbContextCreationWarning
UnitOfWork.Id
UnitOfWork.Options
UnitOfWork.Outer
UnitOfWork.IsReserved
UnitOfWork.IsDisposed
UnitOfWork.IsCompleted
UnitOfWork.ReservationName
UnitOfWork.CompletedHandlers
UnitOfWork.DistributedEventWithPredicates
UnitOfWork.DistributedEvents
UnitOfWork.LocalEventWithPredicates
UnitOfWork.LocalEvents
UnitOfWork.ServiceProvider
UnitOfWork.UnitOfWorkEventPublisher
UnitOfWork.Items
UnitOfWork.Failed
UnitOfWork.Disposed
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.AspNetCore.Mvc.Uow
Assembly: Volo.Abp.AspNetCore.Mvc.Tests.dll
Syntax
[Dependency(ReplaceServices = true)]
public class TestUnitOfWork : UnitOfWork, IUnitOfWork, IDatabaseApiContainer, IServiceProviderAccessor, ITransactionApiContainer, IDisposable, ITransientDependency

Constructors

TestUnitOfWork(IServiceProvider, IUnitOfWorkEventPublisher, IOptions<AbpUnitOfWorkDefaultOptions>, TestUnitOfWorkConfig)

Declaration
public TestUnitOfWork(IServiceProvider serviceProvider, IUnitOfWorkEventPublisher unitOfWorkEventPublisher, IOptions<AbpUnitOfWorkDefaultOptions> options, TestUnitOfWorkConfig config)
Parameters
Type Name Description
IServiceProvider serviceProvider
IUnitOfWorkEventPublisher unitOfWorkEventPublisher
IOptions<AbpUnitOfWorkDefaultOptions> options
TestUnitOfWorkConfig config

Methods

CompleteAsync(CancellationToken)

Declaration
public override Task CompleteAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken
Returns
Type Description
Task
Overrides
UnitOfWork.CompleteAsync(CancellationToken)

Implements

IUnitOfWork
IDatabaseApiContainer
IServiceProviderAccessor
ITransactionApiContainer
IDisposable
ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform