コード例 #1
0
ファイル: SubjectsBLTest.cs プロジェクト: AdrianMarinica/Timr
 public void ShouldInsertSubject()
 {
     var bl = new SubjectsBL();
     var subject = new Subject
                       {
                           Name = "Tehnologii Web",
                           IsOptional = true,
                           Websites = new List<string> {"http://thor.info.uaic.ro/~busaco/"},
                           TeacherList = new List<string> {"busaco"}
                       };
     bl.InsertSubject(subject);
     subject = new Subject
                   {
                       Name = "Arhitectura Calculatoarelor",
                       IsOptional = true,
                       Websites = new List<string> {"http://thor.info.uaic.ro/~rvlad/"},
                       TeacherList = new List<string> {"rvlad"}
                   };
     bl.InsertSubject(subject);
 }
コード例 #2
0
ファイル: SubjectsDAL.cs プロジェクト: AdrianMarinica/Timr
 public void InsertSubject(Subject subject)
 {
     SubjectsCollection.Collection.Insert(subject);
 }
コード例 #3
0
ファイル: SubjectsBL.cs プロジェクト: AdrianMarinica/Timr
 public void InsertSubject(Subject subject)
 {
     dal.InsertSubject(subject);
 }