Beispiel #1
0
        public InstitutionClass(string code, string name, UniversityClass u)
        {
            if (code == null || code.Length < 3)
            {
                throw new Exception("Institution code problem");
            }
            if (u == null)
            {
                throw new Exception("Institution should have an owner...");
            }

            this.code       = code;
            this.name       = name;
            this.university = u;
            children        = new List <InstitutionClass>();
        }
Beispiel #2
0
 public void TestUniversityContructor()
 {
     si2.bll.Classes.UniversityClass u = new si2.bll.Classes.UniversityClass("ABC");
     Assert.AreEqual("ABC", u.getName());
     //Assert.AreEqual("ABC", u.getName(),true,"Values not equal");
 }