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(); }
public AnuncioController(IHandler <DomainNotification> domainNotificationHandler, IMapper mapper, IAnuncioService anuncioService) : base(domainNotificationHandler) { _anuncioService = anuncioService; _mapper = mapper; }
public AnuncioController(IAnuncioService anuncioService, IImovelService imovelService, IPessoaService pessoaService, IMapper mapper) { _anuncioService = anuncioService; _imovelService = imovelService; _pessoaService = pessoaService; _mapper = mapper; }
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; }
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; }
public AnunciosController(IAnuncioService anuncioService, IMakeService makeService, IModelService modelService, IVersionService versionService) { _anuncioService = anuncioService; _makeService = makeService; _modelService = modelService; _versionService = versionService; }
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; }
public void Setup() { MapperConfig.RegisterMappings(); _dataContext = new DataContext(); _anuncioRepository = new AnuncioRepository(_dataContext); _anuncioService = new AnuncioService(_anuncioRepository); _testHelper = new TestHelper(_dataContext); _dataContext.Database.BeginTransaction(); }
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; }
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; }
public AnuncioAppService(IAnuncioService anuncioService) { _anuncioService = anuncioService; }
public AnuncioAppService(IMapper mapper, IAnuncioService anuncioService, IUnitOfWork unitOfWork) { _mapper = mapper; _anuncioService = anuncioService; _unitOfWork = unitOfWork; }
public LivrosController(IAnuncioService anuncioService, IUsuarioService usuarioService, IVendaService vendaService) { _anuncioService = anuncioService; _usuarioService = usuarioService; _vendaService = vendaService; }
public AnuncioController(IAnuncioService servico) { this._servico = servico; }
public AnunciosController(IAnuncioService anuncioService, IImagemService imagemService) { _anuncioService = anuncioService; _imagemService = imagemService; }
public AnuncioApplication(IAnuncioService anuncioService) { _anuncioService = anuncioService; }
public AnuncioController(IAnuncioService anuncioService) { this.anuncioService = anuncioService; }
public AnuncioController(IAnuncioService anuncioService, IUsuarioService usuarioService) { _anuncioService = anuncioService; _usuarioService = usuarioService; }
public AnunciosController(IAnuncioService servico, IAnuncioRepository repositorio, IClienteRepository clienteRepository) { _servico = servico; _repositorio = repositorio; _clienteRepository = clienteRepository; }
public AnuncioController(IAnuncioService anuncioService) : base(anuncioService) { }
public AnunciosController(IAnuncioService anuncioService) { _anuncioService = anuncioService; }