예제 #1
0
        public async Task GetAllMethodReturnsExpectedDataTest()
        {
            var data = await _manager.GetAll();

            Assert.IsNotNull(data);

            /* 1. Retrieve data to test
             * 2. Assert that returned collection has data
             */
        }
예제 #2
0
        public async Task <IActionResult> Index()
        {
            var data = await _adsManager.GetAll();

            return(View(data));
        }