/// <summary> /// Constructor de la clase Fachada que basicamente inyecta las dependencias de los repositorios con Ninject. /// </summary> public Fachada(ISocioRepository pSocioRepository, IPagoRepository pPagoRepository, ITransaccionRepository pTransaccionRepository, ITipoBienRepository pTipoBienRepository, IModificacionRespository pModificacionRespository, IRubroRepository pRubroRepository, IPersonaRepository pPersonaRepository, IRepository <Persona> pRepositoryBasePersona, IRepository <Pago> pRepositoryBasePago, IRepository <Socio> pRepositoryBaseSocio, IRepository <Transaccion> pRepositoryBaseTransaccion, IRepository <Rubro> pRepositoryBaseRubro, IRepository <Modificacion> pRepositoryBasModificacion, IRepository <TipoBien> pRepositoryBaseTipobien, ILogger pLogger) { cSocioRepository = pSocioRepository; cPagoRepository = pPagoRepository; cTransaccionRepository = pTransaccionRepository; cTipoBienRepository = pTipoBienRepository; cModificacionRespository = pModificacionRespository; cRubroRepository = pRubroRepository; cPersonaRepository = pPersonaRepository; cRepositoryBasePersona = pRepositoryBasePersona; cRepositoryBasePago = pRepositoryBasePago; cRepositoryBaseSocio = pRepositoryBaseSocio; cRepositoryBaseTransaccion = pRepositoryBaseTransaccion; cRepositoryBaseRubro = pRepositoryBaseRubro; cRepositoryBasModificacion = pRepositoryBasModificacion; cRepositoryBaseTipobien = pRepositoryBaseTipobien; cLogger = pLogger; }
public PagoService(IPagoRepository pagoRepository, IValidator <PagoInputDataContract> pagoInputDataContractValidator, IOptions <AppSettings> appSettings) { this.PagoRepository = pagoRepository; this.PagoInputDataContractValidator = pagoInputDataContractValidator; this.AppSettings = appSettings; }
public PagosController(DataContext context, IConverterHelper converterHelper, ICombosHelper combosHelper, IValidatorHelper validatorHelper, IPagoRepository pagoRepository, IProductoPagoRepository productoPagoRepository) { _context = context; _converterHelper = converterHelper; _combosHelper = combosHelper; _validatorHelper = validatorHelper; _IpagoRepository = pagoRepository; _productoPagoRepository = productoPagoRepository; }
public void TestInitialize() { var options = new DbContextOptionsBuilder <ApplicationDBContext>().UseLazyLoadingProxies().UseSqlServer("Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=FACTURACION;").Options; this.PagoRepository = new PagoRepository(new ApplicationDBContext(options)); }
public PagosController(IPagoRepository pagoRepository) { this.pagoRepository = pagoRepository; }