Exemplo n.º 1
0
        public AnuncioServiceIntegrationTest()
        {
            //Arrange
            string                    connectionString         = "Server=HIDEAKIUCHIDA;Database=EVERESTDB;Integrated Security=True;";
            string                    avanticaConnectionString = "Server=LIM-WS00279\\SQLEXPRESS;Database=EVERESTDB;Integrated Security=True;";
            IDbConnection             dbConnection             = new SqlConnection(avanticaConnectionString);
            IAnuncioRepository        anuncioRepository        = new AnuncioRepository(dbConnection);
            IAnuncioDetalleRepository anuncioDetalleRepository = new AnuncioDetalleRepository(dbConnection);
            IUbicacionRepository      ubicacionRepository      = new UbicacionRepository(dbConnection);
            IUsuarioRepository        usuarioRepository        = new UsuarioRepository(dbConnection);
            ITipoPropiedadRepository  tipoPropiedadRepository  = new TipoPropiedadRepository(dbConnection);
            IEvaluacionRepository     evaluacionRepository     = new EvaluacionRepository(dbConnection);
            IImagenRepository         imagenRepository         = new ImagenRepository(dbConnection);
            IMapper                   mapper = new Mapper(
                new MapperConfiguration(
                    configure => { configure.AddProfile <AutoMapperProfiles>(); }
                    )
                );

            _anuncioService = new AnuncioService(anuncioRepository, anuncioDetalleRepository, usuarioRepository,
                                                 tipoPropiedadRepository, ubicacionRepository, evaluacionRepository, imagenRepository, mapper);

            ValidCreacionAnuncioRequest = AnuncioFake.GetCreacionAnuncioRequest();
            ValidEdicionAnuncioRequest  = AnuncioFake.GetEdicionAnuncioRequest();
        }
Exemplo n.º 2
0
 public AnuncioController(IHandler <DomainNotification> domainNotificationHandler,
                          IMapper mapper,
                          IAnuncioService anuncioService) :
     base(domainNotificationHandler)
 {
     _anuncioService = anuncioService;
     _mapper         = mapper;
 }
Exemplo n.º 3
0
 public AnuncioController(IAnuncioService anuncioService, IImovelService imovelService,
                          IPessoaService pessoaService, IMapper mapper)
 {
     _anuncioService = anuncioService;
     _imovelService  = imovelService;
     _pessoaService  = pessoaService;
     _mapper         = mapper;
 }
Exemplo n.º 4
0
 public ValidationService(ApplicationDbContext context, INotificationsService notificationsService, ILogger <ValidationService> log, IAnuncioService anuncioService, IQueueService queueService)
 {
     _anuncioRepository    = new Repository <Anuncio>(context);
     _notificationsService = notificationsService;
     _log            = log;
     _anuncioService = anuncioService;
     _queueService   = queueService;
 }
Exemplo n.º 5
0
 public GrupoController(UserManager <IdentityUser> userManager, IGrupoService grupoService, IAnuncioService anuncioService, ITemporizadorService temporizadorService, IChequerService chequerService, ILogger <GrupoController> log, IManejadorFinancieroService financieroService)
 {
     _grupoService        = grupoService;
     _userManager         = userManager;
     _anuncioService      = anuncioService;
     _temporizadorService = temporizadorService;
     _chequerService      = chequerService;
     _log = log;
     _financieroService = financieroService;
 }
Exemplo n.º 6
0
 public AnunciosController(IAnuncioService anuncioService,
                           IMakeService makeService,
                           IModelService modelService,
                           IVersionService versionService)
 {
     _anuncioService = anuncioService;
     _makeService    = makeService;
     _modelService   = modelService;
     _versionService = versionService;
 }
Exemplo n.º 7
0
 public GrupoService(ApplicationDbContext context, IAnuncioService anuncioService, ILogger <ChequerService> log, ITemporizadorService temporizadorService, IManejadorFinancieroService financieroService)
 {
     _context             = context;
     _repository          = new Repository <Grupo>(_context);
     _anuncioRepo         = new Repository <Anuncio>(_context);
     _anuncioService      = anuncioService;
     _log                 = log;
     _temporizadorService = temporizadorService;
     _financieroService   = financieroService;
 }
Exemplo n.º 8
0
        public void Setup()
        {
            MapperConfig.RegisterMappings();

            _dataContext       = new DataContext();
            _anuncioRepository = new AnuncioRepository(_dataContext);
            _anuncioService    = new AnuncioService(_anuncioRepository);
            _testHelper        = new TestHelper(_dataContext);

            _dataContext.Database.BeginTransaction();
        }
Exemplo n.º 9
0
 public ChequerService(ApplicationDbContext context, IGrupoService grupoService, ILogger <ChequerService> log, ICaptchaService captchaService, IRegistroService registroService, IAnuncioService anuncioService, IManejadorFinancieroService financieroService, ITemporizadorService temporizadorService, IValidationService validationService, IEmailRandomService emailRandomService, IQueueService queueService)
 {
     _context = context;
     repositoryTemporizador = new Repository <Temporizador>(context);
     _removeRepository      = new Repository <RemoveQueue>(context);
     _grupoService          = grupoService;
     _log                 = log;
     _captchaService      = captchaService;
     _registroService     = registroService;
     _anuncioService      = anuncioService;
     _financieroService   = financieroService;
     _temporizadorService = temporizadorService;
     _validationService   = validationService;
     _emailRandomService  = emailRandomService;
     _queueService        = queueService;
 }
Exemplo n.º 10
0
        public TestHelper(DataContext context)
        {
            MapperConfig.RegisterMappings();

            _userRepository = new UserRepository(context);
            _userService    = new UserService(_userRepository);

            _marcaRepository = new MarcaRepository(context);
            _marcaService    = new MarcaService(_marcaRepository);

            _modeloRepository = new ModeloRepository(context);
            _modeloService    = new ModeloService(_modeloRepository);

            _anuncioRepository = new AnuncioRepository(context);
            _anuncioService    = new AnuncioService(_anuncioRepository);

            _mockBuilder = new MockBuilder();
        }
 public AnuncioController(IAnuncioService anuncioService, IAnuncioRepositorio anuncioRepositorio)
 {
     _anuncioService     = anuncioService;
     _anuncioRepositorio = anuncioRepositorio;
 }
Exemplo n.º 12
0
 public AnuncioAppService(IAnuncioService anuncioService)
 {
     _anuncioService = anuncioService;
 }
 public AnuncioAppService(IMapper mapper, IAnuncioService anuncioService, IUnitOfWork unitOfWork)
 {
     _mapper         = mapper;
     _anuncioService = anuncioService;
     _unitOfWork     = unitOfWork;
 }
Exemplo n.º 14
0
 public LivrosController(IAnuncioService anuncioService, IUsuarioService usuarioService, IVendaService vendaService)
 {
     _anuncioService = anuncioService;
     _usuarioService = usuarioService;
     _vendaService   = vendaService;
 }
Exemplo n.º 15
0
 public AnuncioController(IAnuncioService servico)
 {
     this._servico = servico;
 }
Exemplo n.º 16
0
 public AnunciosController(IAnuncioService anuncioService, IImagemService imagemService)
 {
     _anuncioService = anuncioService;
     _imagemService  = imagemService;
 }
Exemplo n.º 17
0
 public AnuncioApplication(IAnuncioService anuncioService)
 {
     _anuncioService = anuncioService;
 }
Exemplo n.º 18
0
 public AnuncioController(IAnuncioService anuncioService)
 {
     this.anuncioService = anuncioService;
 }
 public AnuncioController(IAnuncioService anuncioService, IUsuarioService usuarioService)
 {
     _anuncioService = anuncioService;
     _usuarioService = usuarioService;
 }
Exemplo n.º 20
0
 public AnunciosController(IAnuncioService servico, IAnuncioRepository repositorio, IClienteRepository clienteRepository)
 {
     _servico           = servico;
     _repositorio       = repositorio;
     _clienteRepository = clienteRepository;
 }
Exemplo n.º 21
0
 public AnuncioController(IAnuncioService anuncioService) : base(anuncioService)
 {
 }
Exemplo n.º 22
0
 public AnunciosController(IAnuncioService anuncioService)
 {
     _anuncioService = anuncioService;
 }