C# Класс Kore.Domain.Tests.MockUnitOfWork

An implementation of Unit of Work that can be used in tests.
Наследование: BaseUnitOfWork, IUnitOfWork
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BeginTransaction ( ) : void

Begins the transaction.

Commit ( ) : void

Commits the changes to the repositories in this unit of work.

Dispose ( ) : void

Disposes the unit of work and all corresponding repositories.

MockUnitOfWork ( IAuthenticationProvider authenticationProvider, IMessageProvider messageProvider, IDomainEventDispatcher eventDispatcher ) : System

Initializes a new instance of the MockUnitOfWork class.

Rollback ( ) : void

Rolls back the transaction.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Приватные методы

Метод Описание
MockUnitOfWork ( ) : System

Prevents a default instance of the MockUnitOfWork class from being created.

Описание методов

BeginTransaction() публичный Метод

Begins the transaction.
public BeginTransaction ( ) : void
Результат void

Commit() публичный Метод

Commits the changes to the repositories in this unit of work.
public Commit ( ) : void
Результат void

Dispose() публичный Метод

Disposes the unit of work and all corresponding repositories.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Результат void

MockUnitOfWork() публичный Метод

Initializes a new instance of the MockUnitOfWork class.
public MockUnitOfWork ( IAuthenticationProvider authenticationProvider, IMessageProvider messageProvider, IDomainEventDispatcher eventDispatcher ) : System
authenticationProvider IAuthenticationProvider The authentication provider.
messageProvider IMessageProvider The message provider.
eventDispatcher IDomainEventDispatcher The event dispatcher.
Результат System

Rollback() публичный Метод

Rolls back the transaction.
public Rollback ( ) : void
Результат void