//ICotizacionCoberturaRepository _cotizacionCoberturaRepository; //ICotizacionCoberturaUbicacionRepository _cotizacionCoberturaUbicacionRepository; public CotizacionManagementService(ICotizacionRepository cotizacionRepository, ICatalogoRepository catalogoRepository, IUbicacionRepository ubicacionRepository) //ICotizacionCoberturaRepository cotizacionCoberturaRepository, ICotizacionCoberturaUbicacionRepository cotizacionCoberturaUbicacionRepository) { if (cotizacionRepository == (ICotizacionRepository)null) { throw new ArgumentNullException("CotizacionRepository"); } if (catalogoRepository == (ICotizacionRepository)null) { throw new ArgumentNullException("CatalogoRepository"); } if (ubicacionRepository == (IUbicacionRepository)null) { throw new ArgumentNullException("UbicacionRepository"); } //if (cotizacionCoberturaRepository == (ICotizacionCoberturaRepository)null) // throw new ArgumentNullException("CotizacionCoberturaRepository"); //if (cotizacionCoberturaUbicacionRepository == (ICotizacionCoberturaUbicacionRepository)null) // throw new ArgumentNullException("CotizacionCoberturaUbicacionRepository"); _cotizacionRepository = cotizacionRepository; _catalogoRepository = catalogoRepository; _ubicacionRepository = ubicacionRepository; //_cotizacionCoberturaRepository = cotizacionCoberturaRepository; //_cotizacionCoberturaUbicacionRepository = cotizacionCoberturaUbicacionRepository; }
/// <summary> /// Inicializa los repositorios internos de la clase. /// </summary> public Sistema(IPersonaRepository repositoryPersona, IRepository <Usuario> repositoryUsuario, ICotizacionRepository repositoryCotizacion) { // Setter! _repositoryPersona = repositoryPersona ?? throw new ArgumentNullException("Se requiere el repositorio de personas"); _repositoryUsuario = repositoryUsuario ?? throw new ArgumentNullException("Se requiere repositorio de usuarios"); _repositoryCotizacion = repositoryCotizacion ?? throw new ArgumentNullException("Se requiere repositorio de cotizaciones"); // Inicializacion del repositorio. _repositoryPersona.Initialize(); _repositoryUsuario.Initialize(); _repositoryCotizacion.Initialize(); }
public ProcessManagementService(IWorkFlowRepository workFlowRepository, ICotizacionRepository cotizacionRepository, ICatalogoRepository catalogoRepository) { if (workFlowRepository == (IWorkFlowRepository)null) { throw new ArgumentNullException("WorkFlowRepository"); } if (workFlowRepository == (ICotizacionRepository)null) { throw new ArgumentNullException("CotizacionRepository"); } if (workFlowRepository == (ICatalogoRepository)null) { throw new ArgumentNullException("CatalogoRepository"); } _workFlowRepository = workFlowRepository; _cotizacionRepository = cotizacionRepository; _catalogoRepository = catalogoRepository; }
public CotizacionService(ICotizacionRepository _cotizacionRepository, IMapper mapper) { this.cotizacionRepository = _cotizacionRepository; this._mapper = mapper; }
public CotizacionService(ICotizacionRepository cotizacionRepository) { repository = cotizacionRepository; }