public void ShouldSetFIIFacultyGroups() { var bl = new UsersBL(); var fullFaculty = new GenericGroup("FII"); fullFaculty.Groups = new List<GenericGroup>(); #region Bachelor var bachelor1 = new GenericGroup("I1"); var bachelor1A = new GenericGroup("I1A"); var bachelor1B = new GenericGroup("I1B"); bachelor1A.Groups = new List<GenericGroup>(); bachelor1B.Groups = new List<GenericGroup>(); for (int i = 1; i < 8; i++) { bachelor1A.Groups.Add(new GenericGroup("I1A" + i)); bachelor1B.Groups.Add(new GenericGroup("I1B" + i)); } bachelor1.Groups.Add(bachelor1A); bachelor1.Groups.Add(bachelor1B); var bachelor2 = new GenericGroup("I2"); var bachelor2A = new GenericGroup("I2A"); var bachelor2B = new GenericGroup("I2B"); bachelor2A.Groups = new List<GenericGroup>(); bachelor2B.Groups = new List<GenericGroup>(); for (int i = 1; i < 8; i++) { bachelor2A.Groups.Add(new GenericGroup("I2A" + i)); bachelor2B.Groups.Add(new GenericGroup("I2B" + i)); } bachelor2.Groups.Add(bachelor2A); bachelor2.Groups.Add(bachelor2B); var bachelor3 = new GenericGroup("I3"); var bachelor3A = new GenericGroup("I3A"); var bachelor3B = new GenericGroup("I3B"); bachelor3A.Groups = new List<GenericGroup>(); bachelor3B.Groups = new List<GenericGroup>(); for (int i = 1; i < 6; i++) { bachelor3A.Groups.Add(new GenericGroup("I3A" + i)); bachelor3B.Groups.Add(new GenericGroup("I3B" + i)); } bachelor3.Groups.Add(bachelor3B); bachelor3.Groups.Add(bachelor3B); fullFaculty.Groups.Add(bachelor1); fullFaculty.Groups.Add(bachelor2); fullFaculty.Groups.Add(bachelor3); #endregion #region Masters var mis1 = new GenericGroup("MIS1"); mis1.Groups.Add(new GenericGroup("MIS11")); mis1.Groups.Add(new GenericGroup("MIS12")); var mis2 = new GenericGroup("MIS2"); mis2.Groups.Add(new GenericGroup("MIS21")); mis2.Groups.Add(new GenericGroup("MIS22")); var mlc1 = new GenericGroup("MLC1"); var mlc2 = new GenericGroup("MLC2"); var moc1 = new GenericGroup("MOC1"); var moc2 = new GenericGroup("MOC2"); var msd1 = new GenericGroup("MSD1"); var msd2 = new GenericGroup("MSD2"); var msi1 = new GenericGroup("MSI1"); var msi2 = new GenericGroup("MSI2"); fullFaculty.Groups.Add(mis1); fullFaculty.Groups.Add(mis2); fullFaculty.Groups.Add(mlc1); fullFaculty.Groups.Add(mlc2); fullFaculty.Groups.Add(moc1); fullFaculty.Groups.Add(moc2); fullFaculty.Groups.Add(msd1); fullFaculty.Groups.Add(msd2); fullFaculty.Groups.Add(msi1); fullFaculty.Groups.Add(msi2); #endregion bl.SetFacultyGroups("info.uaic.ro", fullFaculty); }