示例#1
0
        public async Task GetSetsForCurrentUserAsync_WhenCalled_ReturnListOfSetsAsync()
        {
            var result = await _setService.GetSetsForCurrentUserAsync();

            Assert.That(result, Is.TypeOf <List <Set> >());
            Assert.That(result, Is.Not.Empty);
        }
示例#2
0
        public async Task <IActionResult> OnGetAsync()
        {
            this.Sets = await _setService.GetSetsForCurrentUserAsync();

            ViewData["SetId"] = new SelectList(this.Sets, "Id", "Name");

            return(Page());
        }
示例#3
0
 public async Task OnGetAsync()
 {
     this.Set = await _setService.GetSetsForCurrentUserAsync();
 }