public void StudentGetID() { //Arrange EFStudent student = StudentDB.GetStudentByID(1); //Assert Assert.AreEqual(student.StudentID, 1); Assert.AreEqual(student.First_Name.Trim(), "Corey"); }
private void ClockInAnimation(int studentID) { Storyboard showResult; EFStudent student = StudentDB.GetStudentByID(studentID); lblResult.Content = "You have logged in, " + student.First_Name.Trim() + " " + student.Last_Name.Trim(); rectBottom.Visibility = Visibility.Visible; grdBottom.Visibility = Visibility.Visible; showResult = (Storyboard)this.Resources["ScrollDown"]; showResult.Begin(); showResult = (Storyboard)this.Resources["FadeOut"]; showResult.Begin(); }
public StudentDTO GetStudentByID(int id) { StudentDB dbObj = new StudentDB(); return(dbObj.GetStudentByID(id)); }