public async Task <DataList> Execute() { try { await Task.Delay(1); var dataList = new DataList { Videos = _videoRepository.GetAll(), Users = _userRepository.GetAll() }; return(dataList); } catch (Exception e) { Console.WriteLine(e); return(null); } }
private static void GivenDataReturnForUserRepositoryMockGetAll(ClsUserRepositorySql userRepository, List <User> users) { userRepository.GetAll().Returns(users); }