public async Task <IActionResult> Get() { var yeasts = await _yeastRepository.GetAll(); var response = _mapper.Map <IEnumerable <YeastDto> >(yeasts); return(Ok(response)); }
public void GetAll_Not_Null_Not_Empty() { var yeasts = _yeastRepository.GetAll(); Assert.NotNull(yeasts); Assert.True(yeasts.Any()); }
public IActionResult GetAll() { return(Ok(_yeastRepository.GetAll())); }