Esempio n. 1
0
 public void SubjectConnectingAndReadingAll()
 {
     var actual = new List<ENSubject>();
     var advert = new ENSubject();
     Assert.AreEqual(0, advert.Id);
     actual = advert.ReadAll();
 }
Esempio n. 2
0
 public void SubjectInsert()
 {
     var course = new ENCourse();
     var subject = new ENSubject();
     subject.Name = "nameTest";
     subject.Course = course.Read(1);
     subject.Save();
     var subjects = subject.ReadAll();
     var actual = subjects[subjects.Count - 1];
     actual.Delete();
     Assert.AreEqual("nameTest", actual.Name);
 }