Exemple #1
0
 public ServiceBase(IUnitOfWork unitOfWork, IReadUnit readUnit)
 {
     _unitOfWork      = unitOfWork ?? throw new ArgumentException("Unit of Work");
     _readUnit        = readUnit ?? throw new ArgumentException("Read Unit");
     _writeRepository = _unitOfWork.WriteRepository <T>();
     _readRepository  = _readUnit.ReadRepository <T>();
 }
Exemple #2
0
 public RouteService(IUnitOfWork unitOfWork, IReadUnit readUnit) : base(unitOfWork, readUnit)
 {
 }