예제 #1
0
        public void SetUp()
        {
            _cathedraRepository = Mock.Of <ICathedraRepository>();
            _cathedraService    = new CathedraService(_cathedraRepository);

            _cathedra = new CathedraItem()
            {
                FullName  = "Информациионных систем и технологий",
                ShortName = "ИСиТ",
                FacultyId = 1
            };
        }
예제 #2
0
        public void SetUp()
        {
            _cathedraRepository = Mock.Of<ICathedraRepository>();
            _cathedraService = new CathedraService(_cathedraRepository);

            _cathedra = new CathedraItem()
            {
                FullName = "Информациионных систем и технологий",
                ShortName = "ИСиТ",
                FacultyId = 1
            };
        }
예제 #3
0
파일: CathedraService.cs 프로젝트: dha01/IS
 /// <summary>
 /// Конструктор класс.
 /// </summary>
 /// <param name="cathedra_repository">Интерфейс репозитория кафедр.</param>
 public CathedraService(ICathedraRepository cathedra_repository)
 {
     _cathedraRepository = cathedra_repository;
 }
예제 #4
0
파일: CathedraService.cs 프로젝트: dha01/IS
 /// <summary>
 /// Конструктор без параметров.
 /// </summary>
 public CathedraService()
 {
     _cathedraRepository = new CathedraRepository();
 }
예제 #5
0
파일: CathedraService.cs 프로젝트: dha01/IS
 /// <summary>
 /// Конструктор класс.
 /// </summary>
 /// <param name="cathedra_repository">Интерфейс репозитория кафедр.</param>
 public CathedraService(ICathedraRepository cathedra_repository)
 {
     _cathedraRepository = cathedra_repository;
 }
예제 #6
0
파일: CathedraService.cs 프로젝트: dha01/IS
 /// <summary>
 /// Конструктор без параметров.
 /// </summary>
 public CathedraService()
 {
     _cathedraRepository = new CathedraRepository();
 }