예제 #1
0
        public async Task WhenSeBuscaElDiagnosticoPorElId(int id)
        {
            if (IdDiagnostico != id)
            {
                throw new Exception("El Id debería ser 1");
            }

            Query = new DiagnosticoQueryService(Context);

            try
            {
                Result = await Query.GetAsync(IdDiagnostico);
            }
            catch (DiagnosticosGetDiagnosticoException e)
            {
                Scenario.Add("DiagnosticosGetDiagnosticoException", e);
            }
        }
예제 #2
0
        public async Task WhenSeListanLosDiagnosticos()
        {
            Query = new DiagnosticoQueryService(Context);

            Result = await Query.GetAllAsync(1, CantidadAListar);
        }
예제 #3
0
 public ApiAppService(DiagnosticoQueryService diagnosticoQueryService, IMapper mapper)
 {
     _diagnosticoQueryService = diagnosticoQueryService;
     _mapper = mapper;
 }