public async Task getallasync_should_return_proper_number_of_possible_category_name_lessons() { List <SubjectDto> listOfSub = (await subjectProvider.BrowseAsync()).ToList(); // Current number of possible Name-Category KeyValuePairs Assert.AreEqual(16, listOfSub.Count); }
public async Task <IActionResult> Get() { var subjects = (await _subjectProvider.BrowseAsync()).ToList(); return(Json(subjects)); }