public async Task <IActionResult> GetAsync() { var customDatasetModels = await _customDatasetService.GetAllAsync(); var customDatasetViewModels = _mapper.Map <IEnumerable <CustomDatasetViewModel> >(customDatasetModels); return(Ok(customDatasetViewModels)); }
public async void GetAll_RightCustomDatasetsCount() { var result = await _customDatasetService.GetAllAsync(); Assert.Equal(2, result.Count()); }