コード例 #1
0
        /// <summary>
        /// Create a new instance of FamRec controller
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceReceta">Service dependency</param>
        public FamRecController(IFamRecAppService service, IRecetaAppService serviceReceta)
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceReceta == null)
            {
                throw new ArgumentNullException("serviceReceta", PresentationResources.exception_WithoutService);
            }

            //_unitOfWork = unitOfWork;
            _serviceFamRec = service;
            _serviceReceta = serviceReceta;
        }
コード例 #2
0
ファイル: FamRecFindViewModel.cs プロジェクト: kacobp/WebApp
        /// <summary>
        /// Create a new instance of FamRec viewmodel
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceReceta">Service dependency</param>
        public FamRecFindViewModel(IFamRecAppService service, IRecetaAppService serviceReceta) : this()
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceReceta == null)
            {
                throw new ArgumentNullException("serviceReceta", PresentationResources.exception_WithoutService);
            }

            _serviceFamRec = service;
            _serviceReceta = serviceReceta;

            BuildVm();
        }
コード例 #3
0
        /// <summary>
        /// Create a new instance of Receta controller
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceFamRec">Service dependency</param>
        /// <param name="serviceRecProd">Service dependency</param>
        public RecetaController(IRecetaAppService service, IFamRecAppService serviceFamRec, IRecProdAppService serviceRecProd)
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceFamRec == null)
            {
                throw new ArgumentNullException("serviceFamRec", PresentationResources.exception_WithoutService);
            }
            if (serviceRecProd == null)
            {
                throw new ArgumentNullException("serviceRecProd", PresentationResources.exception_WithoutService);
            }

            //_unitOfWork = unitOfWork;
            _serviceReceta  = service;
            _serviceFamRec  = serviceFamRec;
            _serviceRecProd = serviceRecProd;
        }
コード例 #4
0
ファイル: RecProdController.cs プロジェクト: kacobp/WebApp
        /// <summary>
        /// Create a new instance of RecProd controller
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceAlim">Service dependency</param>
        /// <param name="serviceReceta">Service dependency</param>
        public RecProdController(IRecProdAppService service, IAlimAppService serviceAlim, IRecetaAppService serviceReceta)
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceAlim == null)
            {
                throw new ArgumentNullException("serviceAlim", PresentationResources.exception_WithoutService);
            }
            if (serviceReceta == null)
            {
                throw new ArgumentNullException("serviceReceta", PresentationResources.exception_WithoutService);
            }

            //_unitOfWork = unitOfWork;
            _serviceRecProd = service;
            _serviceAlim    = serviceAlim;
            _serviceReceta  = serviceReceta;
        }
コード例 #5
0
        /// <summary>
        /// Create a new instance of RecProd viewmodel
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceAlim">Service dependency</param>
        /// <param name="serviceReceta">Service dependency</param>
        public RecProdFindViewModel(IRecProdAppService service, IAlimAppService serviceAlim, IRecetaAppService serviceReceta) : this()
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceAlim == null)
            {
                throw new ArgumentNullException("serviceAlim", PresentationResources.exception_WithoutService);
            }
            if (serviceReceta == null)
            {
                throw new ArgumentNullException("serviceReceta", PresentationResources.exception_WithoutService);
            }

            _serviceRecProd = service;
            _serviceAlim    = serviceAlim;
            _serviceReceta  = serviceReceta;

            BuildVm();
        }
コード例 #6
0
        /// <summary>
        /// Create a new instance of Receta viewmodel
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceFamRec">Service dependency</param>
        /// <param name="serviceRecProd">Service dependency</param>
        public RecetaCrudViewModel(IRecetaAppService service, IFamRecAppService serviceFamRec, IRecProdAppService serviceRecProd) : this()
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceFamRec == null)
            {
                throw new ArgumentNullException("serviceFamRec", PresentationResources.exception_WithoutService);
            }
            if (serviceRecProd == null)
            {
                throw new ArgumentNullException("serviceRecProd", PresentationResources.exception_WithoutService);
            }

            _serviceReceta  = service;
            _serviceFamRec  = serviceFamRec;
            _serviceRecProd = serviceRecProd;

            //BuildVm();
        }