예제 #1
0
        public async Task <IActionResult> Get()
        {
            var yeasts = await _yeastRepository.GetAll();

            var response = _mapper.Map <IEnumerable <YeastDto> >(yeasts);

            return(Ok(response));
        }
예제 #2
0
        public void GetAll_Not_Null_Not_Empty()
        {
            var yeasts = _yeastRepository.GetAll();

            Assert.NotNull(yeasts);
            Assert.True(yeasts.Any());
        }
예제 #3
0
 public IActionResult GetAll()
 {
     return(Ok(_yeastRepository.GetAll()));
 }