コード例 #1
0
        public async Task <IActionResult> GetAsync()
        {
            var customDatasetModels = await _customDatasetService.GetAllAsync();

            var customDatasetViewModels = _mapper.Map <IEnumerable <CustomDatasetViewModel> >(customDatasetModels);

            return(Ok(customDatasetViewModels));
        }
コード例 #2
0
        public async void GetAll_RightCustomDatasetsCount()
        {
            var result = await _customDatasetService.GetAllAsync();

            Assert.Equal(2, result.Count());
        }