You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class UnitOfWork : IUnitOfWork
{
public IProjectRepository ProjectRepository { get; } = new ProjectDAL;
public IMemberRepository MemberRepository { get; } = new MemberDAL;
}
public class FakeUnitOfWork : IUnitOfWork
{
public IProjectRepository ProjectRepository { get; } = new FakeProjectRepository;
public IMemberRepository MemberRepository { get; } = new FakeMemberRepository;
}
Given...
Multiple repositories are referenced within a method or class
When...
The need for accessing multiple repositories arises
Then...
Construct via factory, or pass in via DI a UnitOfWork class that contains all
IRepositories
to allow easy use of repositories.Acceptance Criteria:
The text was updated successfully, but these errors were encountered: