Интерфейс репозитория специальностей.
Inheritance: ISpecialtyRepository
Esempio n. 1
0
        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)
            };
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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,
            };
        }
Esempio n. 4
0
        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)
            };
        }