public FundoService(IFundoRepository fundoRepository,
                     IUnitOfWork unitOfWork,
                     IMapper mapper)
 {
     this.fundoRepository = fundoRepository;
     this.unitOfWork      = unitOfWork;
     this.mapper          = mapper;
 }
        public FundoControllerTest()
        {
            fundoRepository = new FundoRepository(Context);
            unitOfWork      = new UnitOfWork(Context);
            mapper          = AutoMapperConfig.RegisterMappings().CreateMapper();
            fundoService    = new FundoService(fundoRepository, unitOfWork, mapper);
            fundoController = new FundoController(fundoService);

            CarregarFundos();
        }
Esempio n. 3
0
 public FundoService(IFundoRepository fundoRepository,
                     IMovimentacaoRepository movimentacaoRepository)
 {
     _fundoRepository        = fundoRepository;
     _movimentacaoRepository = movimentacaoRepository;
 }
Esempio n. 4
0
 public FundoApplication(IFundoRepository fundoRepository)
 {
     this.fundoRepository = fundoRepository;
 }
 public FundoService(IFundoRepository fundoRepository)
 {
     _fundoRepository = fundoRepository;
 }