예제 #1
0
    public async Task OnGetAsync()
    {
        var menuItemDto = await MenuAdminAppService.GetAsync(Id);

        ViewModel = ObjectMapper.Map <MenuItemDto, MenuItemUpdateViewModel>(menuItemDto);
    }
예제 #2
0
        public async Task GetAsync_ShouldWorkProperly_WithCorrectId()
        {
            var menu = await MenuAdminAppService.GetAsync(TestData.MenuItem_1_Id);

            menu.ShouldNotBeNull();
        }