public async Task GetAllMethodReturnsExpectedDataTest() { var data = await _manager.GetAll(); Assert.IsNotNull(data); /* 1. Retrieve data to test * 2. Assert that returned collection has data */ }
public async Task <IActionResult> Index() { var data = await _adsManager.GetAll(); return(View(data)); }