public HomeControllerTests(DoacaoFixture doacaoFixture, EnderecoFixture enderecoFixture, CartaoCreditoFixture cartaoCreditoFixture)
        {
            _doacaoFixture        = doacaoFixture;
            _enderecoFixture      = enderecoFixture;
            _cartaoCreditoFixture = cartaoCreditoFixture;

            _mapper = new Mock <IMapper>();

            _doacaoValida = doacaoFixture.DoacaoValida();
            _doacaoValida.AdicionarEnderecoCobranca(enderecoFixture.EnderecoValido());
            _doacaoValida.AdicionarFormaPagamento(cartaoCreditoFixture.CartaoCreditoValido());

            _doacaoModelValida = doacaoFixture.DoacaoModelValida();
            _doacaoModelValida.EnderecoCobranca = enderecoFixture.EnderecoModelValido();
            _doacaoModelValida.FormaPagamento   = cartaoCreditoFixture.CartaoCreditoModelValido();

            _mapper.Setup(a => a.Map <DoacaoViewModel, Doacao>(_doacaoModelValida)).Returns(_doacaoValida);

            _doacaoService = new DoacaoService(_mapper.Object, _doacaoRepository.Object, _domainNotificationService);

            DbContextOptions <VaquinhaOnlineDBContext> _options = new DbContextOptionsBuilder <VaquinhaOnlineDBContext>()
                                                                  .UseInMemoryDatabase(databaseName: "VaquinhaOnlineDIOTests")
                                                                  .Options;
            var _context = new VaquinhaOnlineDBContext(_options);

            var _homeRepository  = new HomeInfoRepository(_context);
            var _causaRepository = new CausaRepository(_context);

            _homeInfoService = new HomeInfoService(_mapper.Object, _doacaoService, _globallAppConfig.Object, _homeRepository, _causaRepository);
        }
        public DoacaoControllerTests(
            DoacaoFixture doacaoFixture,
            EnderecoFixture enderecoFixture,
            CartaoCreditoFixture cartaoCreditoFixture,
            CausaFixture causaFixture,
            PessoaFixture pessoaFixture)
        {
            _doacaoFixture        = doacaoFixture;
            _enderecoFixture      = enderecoFixture;
            _cartaoCreditoFixture = cartaoCreditoFixture;
            _causaFixture         = causaFixture;
            _pessoaFixture        = pessoaFixture;

            _mapper = new Mock <IMapper>();

            _doacaoValida = doacaoFixture.DoacaoValida();
            _doacaoValida.AdicionarEnderecoCobranca(enderecoFixture.EnderecoValido());
            _doacaoValida.AdicionarFormaPagamento(cartaoCreditoFixture.CartaoCreditoValido());

            _doacaoModelValida = doacaoFixture.DoacaoModelValida();
            _doacaoModelValida.EnderecoCobranca = enderecoFixture.EnderecoModelValido();
            _doacaoModelValida.FormaPagamento   = cartaoCreditoFixture.CartaoCreditoModelValido();

            _mapper.Setup(a => a.Map <DoacaoViewModel, Doacao>(_doacaoModelValida)).Returns(_doacaoValida);

            _doacaoService = new DoacaoService(_mapper.Object, _doacaoRepository.Object, _domainNotificationService);
        }