public CalculadorCostoEnvioMaritimo(List <EstacionesDTO> lstEstaciones, List <RangosDTO> lstRangos, IObtenerEstacion obtenerEstacion) { this.lstEstaciones = lstEstaciones; lstEstaciones.Add(new EstacionesDTO { cEstacion = "PRIMAVERA", dValor = 1 }); lstEstaciones.Add(new EstacionesDTO { cEstacion = "VERANO", dValor = 1.1 }); lstEstaciones.Add(new EstacionesDTO { cEstacion = "OTONIO", dValor = 1.15 }); lstEstaciones.Add(new EstacionesDTO { cEstacion = "INVIERNO", dValor = 1.23 }); this.obtenerEstacion = obtenerEstacion; this.lstRangos = lstRangos; lstRangos.Add(new RangosDTO { iLimiteInferior = 1, iLimiteSuperior = 100, dCosto = 1 }); lstRangos.Add(new RangosDTO { iLimiteInferior = 101, iLimiteSuperior = 1000, dCosto = 0.5 }); lstRangos.Add(new RangosDTO { iLimiteInferior = 1001, iLimiteSuperior = null, dCosto = .3 }); }
public CalculadorCostoEnvioMaritimo(CostoAdicionalPorTemporada lstCostoAdicionalPorTemporada, List <CostoPorKilometro> lstCostoPorKm, IObtenerEstacion obtenerEstacion) { this.lstCostoAdicionalPorTemporada = lstCostoAdicionalPorTemporada; this.obtenerEstacion = obtenerEstacion; this.lstCostoPorKm = lstCostoPorKm; }
public CalculadorVelocidadMaritimo(List <EstacionesDTO> lstEstaciones, IObtenerEstacion obtenerEstacion) { this.lstEstaciones = lstEstaciones; lstEstaciones.Add(new EstacionesDTO { cEstacion = "PRIMAVERA", dValor = 0 }); lstEstaciones.Add(new EstacionesDTO { cEstacion = "VERANO", dValor = -0.1 }); lstEstaciones.Add(new EstacionesDTO { cEstacion = "OTONIO", dValor = 0.15 }); lstEstaciones.Add(new EstacionesDTO { cEstacion = "INVIERNO", dValor = -0.30 }); this.obtenerEstacion = obtenerEstacion; }
public CalculadorTiempoTrasladoTerrestre(IObtenerEstacion obtenerEstacion, List <EstacionesDTO> lstEstaciones) { this.lstEstaciones = lstEstaciones; lstEstaciones.Add(new EstacionesDTO { cEstacion = "PRIMAVERA", dValor = 4 }); lstEstaciones.Add(new EstacionesDTO { cEstacion = "VERANO", dValor = 6 }); lstEstaciones.Add(new EstacionesDTO { cEstacion = "OTONIO", dValor = 5 }); lstEstaciones.Add(new EstacionesDTO { cEstacion = "INVIERNO", dValor = 8 }); this.obtenerEstacion = obtenerEstacion; }
public CalculadorVelocidadMaritimo(VelocidadPorTemporada lstVelocidadPorTemporada, IObtenerEstacion obtenerEstacion) { this.lstVelocidadPorTemporada = lstVelocidadPorTemporada; this.obtenerEstacion = obtenerEstacion; }
public CalculadorTiempoTrasladoTerrestre(IObtenerEstacion obtenerEstacion, RetrasoPorDiaPorTemporada lstRetrasoPorDiaPorTemporada) { this.lstRetrasoPorDiaPorTemporada = lstRetrasoPorDiaPorTemporada; this.obtenerEstacion = obtenerEstacion; }