public Create ( |
||
cathedra | Кафедра. | |
return | int |
public void SetUp() { _transactionScope = new TransactionScope(); _studentRepository = new StudentRepository(); _personRepository = new PersonRepository(); _teamRepository = new TeamRepository(); _specialtyDetailRepository = new SpecialtyDetailRepository(); _specialtyRepository = new SpecialtyRepository(); _cathedraRepository = new CathedraRepository(); _facultyRepository = new FacultyRepository(); _team = new TeamItem() { CreateDate = DateTime.Now, Name = "ПЕ-22б", SpecialtyDetailId = _specialtyDetailRepository.Create(new SpecialtyDetailItem() { SpecialtyId = _specialtyRepository.Create(new SpecialtyItem() { CathedraId = _cathedraRepository.Create(new CathedraItem() { FacultyId = _facultyRepository.Create(new FacultyItem()), FullName = "Кафедра", ShortName = "K" }), FullName = "Специальность", ShortName = "С", Code = "1" }), ActualDate = DateTime.Now }) }; _student = new StudentItem() { LastName = "Егоров", FirstName = "Виталий", FatherName = "Игоревич", Birthday = DateTime.Now, TeamId = _teamRepository.Create(_team) }; _student.Id = _personRepository.Create(_student); _studentNew = new StudentItem() { LastName = "Журавлев", FirstName = "Данил", FatherName = "Александрович", Birthday = DateTime.Now, TeamId = _teamRepository.Create(_team) }; _studentNew.Id = _personRepository.Create(_student); }
public void SetUp() { _transactionScope = new TransactionScope(); _lecturerRepository = new LecturerRepository(); _cathedraRepository = new CathedraRepository(); _facultyRepository = new FacultyRepository(); _personRepository = new PersonRepository(); _faculty = new FacultyItem() { FullName = "Информационный", ShortName = "И", }; _cathedra = new CathedraItem() { FullName = "Информациионных систем и технологий", ShortName = "ИСиТ", FacultyId = _facultyRepository.Create(_faculty) }; _person = new PersonItem() { Birthday = DateTime.Now.AddDays(2).Date, FatherName = "Сидорович", FirstName = "Сидор", LastName = "Сидоров", }; _lecturer = new LecturerItem() { CathedraId = _cathedraRepository.Create(_cathedra), Birthday = _person.Birthday, FatherName = _person.FatherName, FirstName = _person.FirstName, Id = _personRepository.Create(_person), LastName = _person.LastName, }; _personNew = new PersonItem() { Birthday = DateTime.Now.AddDays(3).Date, FatherName = "Петрович", FirstName = "Петр", LastName = "Петров", }; _lecturerNew = new LecturerItem() { CathedraId = _cathedraRepository.Create(_cathedra), Birthday = _personNew.Birthday, FatherName = _personNew.FatherName, FirstName = _personNew.FirstName, Id = _personRepository.Create(_person), LastName = _personNew.LastName }; }
public void SetUp() { _transactionScope = new TransactionScope(); _teamRepository = new TeamRepository(); _specialtyDetailRepository = new SpecialtyDetailRepository(); _specialtyRepository = new SpecialtyRepository(); _cathedraRepository = new CathedraRepository(); _facultyRepository = new FacultyRepository(); var specialty_detail = new SpecialtyDetailItem() { SpecialtyId =_specialtyRepository.Create(new SpecialtyItem() { CathedraId = _cathedraRepository.Create(new CathedraItem() { FacultyId = _facultyRepository.Create(new FacultyItem()), FullName = "Кафедра", ShortName = "K" }), FullName = "Специальность", ShortName = "С", Code = "1" }), ActualDate = DateTime.Now }; _team = new TeamItem() { Name = "ПЕ-22б", CreateDate = DateTime.Now.Date, SpecialtyDetailId = _specialtyDetailRepository.Create(specialty_detail) }; _teamNew = new TeamItem() { Name = "ПЕ-21б", CreateDate = DateTime.Now.AddYears(-1).Date, SpecialtyDetailId = _specialtyDetailRepository.Create(specialty_detail) }; }
public void SetUp() { _transactionScope = new TransactionScope(); _specialtyRepository = new SpecialtyRepository(); _specialtyDetailRepository = new SpecialtyDetailRepository(); _cathedraRepository = new CathedraRepository(); _facultyRepository = new FacultyRepository(); _faculty = new FacultyItem() { FullName = "Информационный", ShortName = "И", }; _cathedra = new CathedraItem() { FullName = "Информациионных систем и технологий", ShortName = "ИСиТ", FacultyId = _facultyRepository.Create(_faculty) }; _specialty = new SpecialtyItem() { FullName = "Программное обеспечение вычислительной техники и автоматизированных систем", ShortName = "Ифн", Code = "230105", CathedraId = _cathedraRepository.Create(_cathedra) }; _specialtyNew = new SpecialtyItem() { FullName = "Экономика и технология производства", ShortName = "ЭТП", Code = "230221", CathedraId = _cathedraRepository.Create(_cathedra) }; _specialtyDetail = new SpecialtyDetailItem() { ActualDate = new DateTime(2015,01,01), SpecialtyId = _specialtyRepository.Create(_specialty), SemestrCount = 1, TrainingPeriod = 1, Qualification = Qualification.Bachelor, FormStudy = FormStudy.Distance, PaySpace = 15, LowcostSpace = 4, }; _specialtyDetailNew = new SpecialtyDetailItem() { ActualDate = new DateTime(2015,01,02), SpecialtyId = _specialtyRepository.Create(_specialtyNew), SemestrCount = 2, TrainingPeriod = 2, Qualification = Qualification.Master, FormStudy = FormStudy.Fulltime, PaySpace = 30, LowcostSpace = 6, }; }
public void SetUp() { _transactionScope = new TransactionScope(); _cathedraRepository = new CathedraRepository(); _specialtyRepository = new SpecialtyRepository(); _facultyIdRepository = new FacultyRepository(); _faculty = new FacultyItem() { FullName = "Информационный", ShortName = "И", }; _cathedra = new CathedraItem() { FullName = "Информациионных систем и технологий", ShortName = "ИСиТ", FacultyId = _facultyIdRepository.Create(_faculty) }; _cathedraNew = new CathedraItem() { FullName = "Экономика и организация производлства", ShortName = "ЭиОП", FacultyId = _facultyIdRepository.Create(_faculty) }; _specialty = new SpecialtyItem() { FullName = "Программное обеспечение вычислительной техники и автоматизированных систем", ShortName = "Ифн", Code = "230105", CathedraId = _cathedraRepository.Create(_cathedra) }; _specialtyNew = new SpecialtyItem() { FullName = "Сисадмин", ShortName = "Сис", Code = "123456", CathedraId = _cathedraRepository.Create(_cathedraNew) }; }