TestingUnitOfWorkFactory Class
Namespace: PTS.Modules.Tests.Infrastructure
Assembly: Modules.Tests.dll
Syntax
public static class TestingUnitOfWorkFactory
Inheritance
System.Object
TestingUnitOfWorkFactory
Methods
Create()
Factory method that creates TestingUnitOfWork which uses database.
Declaration
public static IUnitOfWork Create()
Returns
Type | Description |
---|---|
IUnit |
Testing UnitOfWork using database. |
CreateInMemory()
Factory method that creates TestingInMemoryUnitOfWork which uses in memory repositories.
Declaration
public static IUnitOfWork CreateInMemory()
Returns
Type | Description |
---|---|
IUnit |
Testing UnitOfWork using in memory repositories. |