public async Task OnGetAsync() { var menuItemDto = await MenuAdminAppService.GetAsync(Id); ViewModel = ObjectMapper.Map <MenuItemDto, MenuItemUpdateViewModel>(menuItemDto); }
public async Task GetAsync_ShouldWorkProperly_WithCorrectId() { var menu = await MenuAdminAppService.GetAsync(TestData.MenuItem_1_Id); menu.ShouldNotBeNull(); }