public PrecioServicio(IRepositorioPrecio precioRepositorio)
        {
            _precioRepositorio = precioRepositorio;
            var config = new MapperConfiguration(x => x.AddProfile <MapperProfile.MapperProfile>());

            _mapper = config.CreateMapper();
        }
示例#2
0
 public GestorPrecio()
 {
     diaAtencionDao  = new RepositorioDiaAtencion();
     tiempoDao       = new RepositorioTiempo();
     tipoVehiculoDao = new RepositorioTipoVehiculo();
     precioDao       = new RepositorioPrecio();
     servicioDao     = new RepositorioServicio();
 }
示例#3
0
 public GestorPrecio(IRepositorioDiaAtencion diaAtencionDao,
                     IRepositorioTiempo tiempoDao,
                     IRepositorioTipoVehiculo tipoVehiculoDao,
                     IRepositorioPrecio precioDao)
 {
     this.precioDao       = precioDao;
     this.tiempoDao       = tiempoDao;
     this.tipoVehiculoDao = tipoVehiculoDao;
     this.diaAtencionDao  = diaAtencionDao;
 }
示例#4
0
 /// <summary>
 /// Constructor
 /// </summary>
 public GestorPlaya()
 {
     gestorDireccion = new GestorDireccion();
     tipoVehiculoDao = new RepositorioTipoVehiculo();
     playaDao        = new RepositorioPlayaDeEstacionamiento();
     tipoPlayaDao    = new RepositorioTipoDePlaya();
     diaAtencionDao  = new RepositorioDiaAtencion();
     horarioDao      = new RepositorioHorario();
     servicioDao     = new RepositorioServicio();
     precioDao       = new RepositorioPrecio();
     tiempoDao       = new RepositorioTiempo();
 }
示例#5
0
 public PruebaPlayaBase()
 {
     playaDao        = new RepositorioPlayasFalso();
     tipoPlayaDao    = new RepositorioTipoPlayasFalso();
     diaAtencionDao  = new RepositorioDiaAtencionFalso();
     tipoVehiculoDao = new RepositorioTipoVehiculoFalso();
     horarioDao      = new RepositorioHorarioFalso();
     servicioDao     = new RepositorioServicioFalso();
     precioDao       = new RepositorioPrecioFalso();
     direccionDao    = new RepositorioDireccionFalso();
     gestorDireccion = new GestorDireccion(direccionDao);
     gestor          = new GestorPlaya(playaDao, tipoPlayaDao, diaAtencionDao, tipoVehiculoDao, horarioDao, servicioDao, precioDao, gestorDireccion);
 }
示例#6
0
 /// <summary>
 /// Constructor utilizado en unit test
 /// </summary>
 /// <param name="playaDao"></param>
 /// <param name="tipoPlayaDao"></param>
 /// <param name="diaAtencionDao"></param>
 /// <param name="tipoVehiculoDao"></param>
 /// <param name="horarioDao"></param>
 /// <param name="servicioDao"></param>
 /// <param name="precioDao"></param>
 public GestorPlaya(IRepositorioPlayaDeEstacionamiento playaDao,
                    IRepositorioTipoDePlaya tipoPlayaDao,
                    IRepositorioDiaAtencion diaAtencionDao,
                    IRepositorioTipoVehiculo tipoVehiculoDao,
                    IRepositorioHorario horarioDao,
                    IRepositorioServicio servicioDao,
                    IRepositorioPrecio precioDao,
                    GestorDireccion gestorDireccion)
 {
     this.gestorDireccion = gestorDireccion;
     this.playaDao        = playaDao;
     this.tipoPlayaDao    = tipoPlayaDao;
     this.diaAtencionDao  = diaAtencionDao;
     this.tipoVehiculoDao = tipoVehiculoDao;
     this.horarioDao      = horarioDao;
     this.servicioDao     = servicioDao;
     this.precioDao       = precioDao;
 }