/// <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;
 }
Пример #2
0
        public PagoService(IPagoRepository pagoRepository, IValidator <PagoInputDataContract> pagoInputDataContractValidator, IOptions <AppSettings> appSettings)
        {
            this.PagoRepository = pagoRepository;

            this.PagoInputDataContractValidator = pagoInputDataContractValidator;

            this.AppSettings = appSettings;
        }
Пример #3
0
 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;
 }
Пример #4
0
        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));
        }
Пример #5
0
 public PagosController(IPagoRepository pagoRepository)
 {
     this.pagoRepository = pagoRepository;
 }