Esempio n. 1
0
        public async Task <RSV_Global <List <SubArea> > > GetSubAreaByIDArea(int IDArea)
        {
            RSV_Global <List <SubArea> > infoResult = new RSV_Global <List <SubArea> >();

            _Service = new SubAreaService(_appsettings);

            try
            {
                infoResult = await _Service.GetSubAreaByIDArea(IDArea);
            }
            catch (Exception ex)
            {
                infoResult.error = new Error(ex, $"Se presento un error en el método {((MethodInfo)MethodBase.GetCurrentMethod()).Name.ToString()}. {ex.Message}");
            }

            return(infoResult);
        }
Esempio n. 2
0
        //private readonly IAzureService azureService;

        public LeadController(ILeadService leadService, ISubAreaService subAreaService)//, IAzureService azureService)
        {
            this.leadService    = leadService;
            this.subAreaService = subAreaService;
            //this.azureService = azureService;
        }
Esempio n. 3
0
        public SubAreaServiceMoq()
        {
            Mock <ISubAreaRepository> _subareaRepository = new SubAreaRepositoryMoq()._subareaRepository;

            _subareaService = new SubAreaService(_subareaRepository.Object);
        }
 public SubAreasController(ISubAreaService service)
 {
     _service = service;
 }