Exemplo n.º 1
0
 public GetCatHandler(IUnitOfWorkFactory unitOfWorkFactory, IHelloWorldRepositoryFactory repositoryFactory, IHelloWorldMapperFactory mapperFactory)
 {
     _unitOfWorkFactory = unitOfWorkFactory;
     _repositoryFactory = repositoryFactory;
     _mapperFactory     = mapperFactory;
 }
Exemplo n.º 2
0
 public AnimalLogic(IHelloWorldUnitOfWork unitOfWork, IHelloWorldRepositoryFactory reporepositoryFactory) : base(unitOfWork)
 {
     // Injecting the repository factory.
     // If needed, we can also inject other Logic classes.
     _repositoryFactory = reporepositoryFactory;
 }