Ejemplo n.º 1
0
 /// <summary>
 /// Constructor que recibe como dependencias las interfaces que contienen las definiciones de los métodos para actualizar una entidad
 /// </summary>
 /// <param name="_updaterRepository"> Servicio que proporciona los métodos para la actualización en el repositorio </param>
 /// <param name="_finderService"> Servicio que proporciona los métodos para de busqueda de una entidad. </param>
 /// <param name="_validatorService"> Servicio que proporciona los métodos para la validación de la entidad a actualizar. </param>
 /// <param name="_getterDateRepository"> Servicio que provee la asignación de la fecha a la entidad. </param>
 protected UpdaterService(IUpdaterRepository <TEntity> _updaterRepository, IFinderService <TEntity> _finderService, IValidatorService <TEntity> _validatorService, IGetterDateRepository _getterDateRepository)
 {
     this.updaterRepository    = _updaterRepository ?? throw new ArgumentNullException(nameof(_updaterRepository));
     this.finderService        = _finderService ?? throw new ArgumentNullException(nameof(_finderService));
     this.validatorService     = _validatorService ?? throw new ArgumentNullException(nameof(_validatorService));
     this.getterDateRepository = _getterDateRepository ?? throw new ArgumentNullException(nameof(_getterDateRepository));
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Конструктор
        /// </summary>
        /// <param name="aggregator"></param>
        public AbonentViewModel(IEventAggregator aggregator)
        {
            _aggregator = aggregator ?? throw new ArgumentNullException("aggregator");
            _finder     = ServiceLocator.Current.GetInstance <IFinderService>();

            this.Abonents    = new ObservableCollection <Common.Models.Abonent>();
            this.Settlements = new ObservableCollection <Settlement>(_finder.GetSettlementList());
        }
Ejemplo n.º 3
0
 public FinderController(IFinderService finderService,
                         IGroupToolService groupToolService,
                         IUserImpersonationService userImpersonationService,
                         IAuthenticationRepository authenticationRepository,
                         IAwsCloudsearchService awsCloudsearchService,
                         IAnalyticsService analyticsService)
     : base(userImpersonationService, authenticationRepository)
 {
     _finderService         = finderService;
     _groupToolService      = groupToolService;
     _awsCloudsearchService = awsCloudsearchService;
     _authenticationRepo    = authenticationRepository;
     _analyticsService      = analyticsService;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Constructor de la clase que inicializa y asigna datos por defecto
 /// </summary>
 /// <param name="_mapper"> Dependencia correspondiente a la biblioteca que se encarga de mapear tipos diferentes de objetos. </param>
 /// <param name="_updaterService"> Dependencia correspondiente al servicio de actualización de una entidad genérica. </param>
 /// <param name="_finderService"> Dependencia correspondiente al servicio de busqueda de una entidad genérica. </param>
 protected UpdaterViewModelService(IMapper _mapper, IUpdaterService <TEntity> _updaterService, IFinderService <TEntity> _finderService)
 {
     this.mapper        = _mapper ?? throw new ArgumentNullException(nameof(_mapper));
     this.updateService = _updaterService ?? throw new ArgumentNullException(nameof(_updaterService));
     this.finderService = _finderService ?? throw new ArgumentNullException(nameof(_finderService));
 }
Ejemplo n.º 5
0
 public ProcessingController(IFinderService finderService,
                             ILogger <ProcessingController> logger)
 {
     _finderService = finderService;
     _logger        = logger;
 }
Ejemplo n.º 6
0
 public HomeController(IFinderService finderService)
 {
     FinderService = finderService;
 }
 public ClassUpdaterViewModelService(IMapper _mapper, IUpdaterService <Template> _updaterService, IFinderService <Template> _finderViewModelService)
     : base(_mapper, _updaterService, _finderViewModelService)
 {
 }
Ejemplo n.º 8
0
 public FinderController(IFinderService findServ)
 {
     this.findServ = findServ;
 }
Ejemplo n.º 9
0
 public ClassUpdaterService(IUpdaterRepository <Template> _updaterRepository, IFinderService <Template> _finderService, IValidatorService <Template> _validatorService, IGetterDateRepository _getterDateRepository)
     : base(_updaterRepository, _finderService, _validatorService, _getterDateRepository)
 {
 }
 public PharmacyController(IFinderService finderService)
 {
     _finderService = finderService;
 }