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); } }
public async Task WhenSeListanLosDiagnosticos() { Query = new DiagnosticoQueryService(Context); Result = await Query.GetAllAsync(1, CantidadAListar); }
public ApiAppService(DiagnosticoQueryService diagnosticoQueryService, IMapper mapper) { _diagnosticoQueryService = diagnosticoQueryService; _mapper = mapper; }