C# 클래스 Kore.Domain.Tests.MockUnitOfWork

An implementation of Unit of Work that can be used in tests.
상속: BaseUnitOfWork, IUnitOfWork
파일 보기 프로젝트 열기: holotrek/kore-csharp 1 사용 예제들

공개 메소드들

메소드 설명
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