public async Task GetSetsForCurrentUserAsync_WhenCalled_ReturnListOfSetsAsync() { var result = await _setService.GetSetsForCurrentUserAsync(); Assert.That(result, Is.TypeOf <List <Set> >()); Assert.That(result, Is.Not.Empty); }
public async Task <IActionResult> OnGetAsync() { this.Sets = await _setService.GetSetsForCurrentUserAsync(); ViewData["SetId"] = new SelectList(this.Sets, "Id", "Name"); return(Page()); }
public async Task OnGetAsync() { this.Set = await _setService.GetSetsForCurrentUserAsync(); }