Exemplo n.º 1
0
 public DriverDutyService(IDriverDutyRepository _driverDutyRepository, IWorkBlockRepository _workBlockRepository, IVehicleDutyRepository repoVehicleDutyRepository, IUnitOfWork unitOfWork)
 {
     this._driverDutyRepository      = _driverDutyRepository;
     this._workBlockRepository       = _workBlockRepository;
     this._repoVehicleDutyRepository = repoVehicleDutyRepository;
     this._driverDutyMapper          = new DriverDutyMapper();
     this._unitOfWork = unitOfWork;
 }
Exemplo n.º 2
0
 public VehicleDutyService(IVehicleDutyRepository vehicleDutyRepo, ITripRepository tripRepository, IVehicleRepository vehicleRepository, IWorkBlockRepository workBlockRepository, IUnitOfWork unitOfWork)
 {
     this._vehicleDutyRepository = vehicleDutyRepo;
     this._tripRepository        = tripRepository;
     this._vehicleRepository     = vehicleRepository;
     this._workBlockRepository   = workBlockRepository;
     this._unitOfWork            = unitOfWork;
     this._vehicleDutyMapper     = new VehicleDutyMapper();
     this._workBlockMapper       = new WorkBlockMapper();
 }
Exemplo n.º 3
0
 public VehicleDutyService(IUnitOfWork unitOfWork, IVehicleDutyRepository repo)
 {
     this._unitOfWork = unitOfWork;
     this._repo       = repo;
 }