private void MainForm_Load(object sender, EventArgs e) { courseCsv = CourseCSV.Initialize(); studCsv = StudentCSV.Initialize(); Task t = studCsv.LoadDataAsync(); t.Wait(); }
public UnitTestStudentCSV() { studentCsv = StudentCSV.Initialize(); Assert.IsNotNull(studentCsv, "Failed: Initialize StudentCSV object returns null!"); studentTestFile = Path.Combine(Environment.CurrentDirectory, @"TestCSVs\Student.csv"); if (!File.Exists(studentTestFile)) { throw new Exception("Can't find test file at: " + studentTestFile); } }