public void Comenzar()
 {
     this.cn.Open();
     this.t             = cn.BeginTransaction();
     this.RClientes     = new ClienteRepository(cn, t);
     this.RVehiculos    = new VehiculoRepository(cn, t);
     this.RPresupuestos = new PresupuestoRepository(cn, t);
 }
Beispiel #2
0
 public PresupuestoSeguimientoService(IPresupuestoEstadoRepository presupuestoEstadoRepository,
                                      IPresupuestoSeguimientoRepository presupuestoSeguimientoRepository,
                                      IPresupuestoRepository presupuestoRepository,
                                      IUnitOfWork unitOfWork)
 {
     _presupuestoEstadoRepository      = presupuestoEstadoRepository;
     _presupuestoSeguimientoRepository = presupuestoSeguimientoRepository;
     _presupuestoRepository            = presupuestoRepository;
     _unitOfWork = unitOfWork;
 }
        public VentasService(IUnitOfWorkFactory unitOfWorkFactory, 
                             IPresupuestoRepository presupuestoRepository, 
                             IVehiculoRepository vehiculoRepository,
                             IClienteRepository clienteRepository)
        {
            Ensure.Argument.NotNull(unitOfWorkFactory, "unitOfWorkFactory");
            Ensure.Argument.NotNull(presupuestoRepository, "presupuestoRepository");
            Ensure.Argument.NotNull(vehiculoRepository, "vehiculoRepository");
            Ensure.Argument.NotNull(clienteRepository, "clienteRepository");

            _unitOfWorkFactory = unitOfWorkFactory;
            _presupuestoRepository = presupuestoRepository;
            _vehiculoRepository = vehiculoRepository;
            _clienteRepository = clienteRepository;
        }
 public void Comenzar()
 {
     try
     {
         this.RClientes     = new EFClienteRepository(Context);
         this.rClientes     = this.RClientes;
         this.RVehiculos    = new EFVehiculoRepository(Context);
         this.rVehiculos    = this.RVehiculos;
         this.RPresupuestos = new EFPresupuestoRepository(Context);
         this.rPresupuestos = this.RPresupuestos;
     }
     catch (Exception e)
     {
     }
 }
Beispiel #5
0
 public PresupuestoService(IPresupuestoRepository presupuestoRepository,
                           IPresupuestoItemRepository presupuestoItemRepository,
                           IPresupuestoEstadoRepository presupuestoEstadoRepository,
                           IPresupuestoItemRepository itemRepository,
                           IArchivoRepository archivoRepository,
                           IPresupuestoSeguimientoService presupuestoSeguimientoService,
                           IUnitOfWork unitOfWork)
 {
     this.presupuestoRepository       = presupuestoRepository;
     this.presupuestoItemRepository   = presupuestoItemRepository;
     this.presupuestoEstadoRepository = presupuestoEstadoRepository;
     this.itemRepository                = itemRepository;
     this.archivoRepository             = archivoRepository;
     this.presupuestoSeguimientoService = presupuestoSeguimientoService;
     this.unitOfWork = unitOfWork;
 }
Beispiel #6
0
 public PresupuestoService(IPresupuestoRepository presupuesto_repository)
 {
     this.presupuesto_repository = presupuesto_repository;
 }