private void Window_Loaded(object sender, RoutedEventArgs e) { string Folder = AppDomain.CurrentDomain.BaseDirectory; //Check file path string newFolder = $"{Folder}Resources\\Data"; MyFileManager.CheckDictionary(newFolder); newFolder = $"{Folder}Resources\\Images"; MyFileManager.CheckDictionary(newFolder); newFolder = $"{Folder}Resources\\Icons"; MyFileManager.CheckDictionary(newFolder); _list_menu = MenuDao.GetAll(); menuList.ItemsSource = _list_menu; _content = new HomePage(); menuPage.Content = _content; menuPage.Visibility = Visibility.Visible; }
public void GetAll() { var models = MenuDao.GetAll(); Assert.IsNotNull(models); }