Ejemplo n.º 1
0
        public void SetUp()
        {
            _cathedraRepository = Mock.Of <ICathedraRepository>();
            _cathedraService    = new CathedraService(_cathedraRepository);

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

            _cathedra = new CathedraItem()
            {
                FullName = "Информациионных систем и технологий",
                ShortName = "ИСиТ",
                FacultyId = 1
            };
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Конструктор класс.
 /// </summary>
 /// <param name="cathedra_repository">Интерфейс репозитория кафедр.</param>
 public CathedraService(ICathedraRepository cathedra_repository)
 {
     _cathedraRepository = cathedra_repository;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Конструктор без параметров.
 /// </summary>
 public CathedraService()
 {
     _cathedraRepository = new CathedraRepository();
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Конструктор класс.
 /// </summary>
 /// <param name="cathedra_repository">Интерфейс репозитория кафедр.</param>
 public CathedraService(ICathedraRepository cathedra_repository)
 {
     _cathedraRepository = cathedra_repository;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Конструктор без параметров.
 /// </summary>
 public CathedraService()
 {
     _cathedraRepository = new CathedraRepository();
 }