Exemplo n.º 1
0
        /// <summary>
        /// Create a new instance of Nutriente viewmodel
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceNt_Cant">Service dependency</param>
        /// <param name="serviceNt_Func">Service dependency</param>
        /// <param name="serviceNt_Grp">Service dependency</param>
        public NutrienteFindViewModel(INutrienteAppService service, INt_CantAppService serviceNt_Cant, INt_FuncAppService serviceNt_Func, INt_GrpAppService serviceNt_Grp) : this()
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceNt_Cant == null)
            {
                throw new ArgumentNullException("serviceNt_Cant", PresentationResources.exception_WithoutService);
            }
            if (serviceNt_Func == null)
            {
                throw new ArgumentNullException("serviceNt_Func", PresentationResources.exception_WithoutService);
            }
            if (serviceNt_Grp == null)
            {
                throw new ArgumentNullException("serviceNt_Grp", PresentationResources.exception_WithoutService);
            }

            _serviceNutriente = service;
            _serviceNt_Cant   = serviceNt_Cant;
            _serviceNt_Func   = serviceNt_Func;
            _serviceNt_Grp    = serviceNt_Grp;

            BuildVm();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Create a new instance of Nt_Cant viewmodel
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceAlim">Service dependency</param>
        /// <param name="serviceNutriente">Service dependency</param>
        /// <param name="serviceNt_Fuente">Service dependency</param>
        public Nt_CantCrudViewModel(INt_CantAppService service, IAlimAppService serviceAlim, INutrienteAppService serviceNutriente, INt_FuenteAppService serviceNt_Fuente) : this()
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceAlim == null)
            {
                throw new ArgumentNullException("serviceAlim", PresentationResources.exception_WithoutService);
            }
            if (serviceNutriente == null)
            {
                throw new ArgumentNullException("serviceNutriente", PresentationResources.exception_WithoutService);
            }
            if (serviceNt_Fuente == null)
            {
                throw new ArgumentNullException("serviceNt_Fuente", PresentationResources.exception_WithoutService);
            }

            _serviceNt_Cant   = service;
            _serviceAlim      = serviceAlim;
            _serviceNutriente = serviceNutriente;
            _serviceNt_Fuente = serviceNt_Fuente;

            BuildVm();
        }
Exemplo n.º 3
0
        /// <summary>
        /// Create a new instance of Nutriente controller
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceNt_Cant">Service dependency</param>
        /// <param name="serviceNt_Func">Service dependency</param>
        /// <param name="serviceNt_Grp">Service dependency</param>
        public NutrienteController(INutrienteAppService service, INt_CantAppService serviceNt_Cant, INt_FuncAppService serviceNt_Func, INt_GrpAppService serviceNt_Grp)
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceNt_Cant == null)
            {
                throw new ArgumentNullException("serviceNt_Cant", PresentationResources.exception_WithoutService);
            }
            if (serviceNt_Func == null)
            {
                throw new ArgumentNullException("serviceNt_Func", PresentationResources.exception_WithoutService);
            }
            if (serviceNt_Grp == null)
            {
                throw new ArgumentNullException("serviceNt_Grp", PresentationResources.exception_WithoutService);
            }

            //_unitOfWork = unitOfWork;
            _serviceNutriente = service;
            _serviceNt_Cant   = serviceNt_Cant;
            _serviceNt_Func   = serviceNt_Func;
            _serviceNt_Grp    = serviceNt_Grp;
        }
Exemplo n.º 4
0
        /// <summary>
        /// Create a new instance of Nt_Cant controller
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceAlim">Service dependency</param>
        /// <param name="serviceNutriente">Service dependency</param>
        /// <param name="serviceNt_Fuente">Service dependency</param>
        public Nt_CantController(INt_CantAppService service, IAlimAppService serviceAlim, INutrienteAppService serviceNutriente, INt_FuenteAppService serviceNt_Fuente)
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceAlim == null)
            {
                throw new ArgumentNullException("serviceAlim", PresentationResources.exception_WithoutService);
            }
            if (serviceNutriente == null)
            {
                throw new ArgumentNullException("serviceNutriente", PresentationResources.exception_WithoutService);
            }
            if (serviceNt_Fuente == null)
            {
                throw new ArgumentNullException("serviceNt_Fuente", PresentationResources.exception_WithoutService);
            }

            //_unitOfWork = unitOfWork;
            _serviceNt_Cant   = service;
            _serviceAlim      = serviceAlim;
            _serviceNutriente = serviceNutriente;
            _serviceNt_Fuente = serviceNt_Fuente;
        }
Exemplo n.º 5
0
        /// <summary>
        /// Create a new instance of Nt_Func viewmodel
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceNutriente">Service dependency</param>
        public Nt_FuncFindViewModel(INt_FuncAppService service, INutrienteAppService serviceNutriente) : this()
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceNutriente == null)
            {
                throw new ArgumentNullException("serviceNutriente", PresentationResources.exception_WithoutService);
            }

            _serviceNt_Func   = service;
            _serviceNutriente = serviceNutriente;

            BuildVm();
        }