C# Class Kore.Domain.Tests.MockUnitOfWork

An implementation of Unit of Work that can be used in tests.
Inheritance: BaseUnitOfWork, IUnitOfWork
Afficher le fichier Open project: holotrek/kore-csharp Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Private Methods

Méthode Description
MockUnitOfWork ( ) : System

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

Method Details

BeginTransaction() public méthode

Begins the transaction.
public BeginTransaction ( ) : void
Résultat void

Commit() public méthode

Commits the changes to the repositories in this unit of work.
public Commit ( ) : void
Résultat void

Dispose() public méthode

Disposes the unit of work and all corresponding repositories.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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.
Résultat void

MockUnitOfWork() public méthode

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.
Résultat System

Rollback() public méthode

Rolls back the transaction.
public Rollback ( ) : void
Résultat void