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>(); }
public RouteService(IUnitOfWork unitOfWork, IReadUnit readUnit) : base(unitOfWork, readUnit) { }