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