Exemplo n.º 1
0
        public void SetUp()
        {
            _auditoryRepository = Mock.Of <IAuditoryRepository>();
            _auditoryService    = new AuditoryService(_auditoryRepository);

            _auditory = new AuditoryItem()
            {
                Id       = 1,
                Number   = 1,
                FullName = "Auditory 1",
                Memo     = "New auditory 1",
                Level    = 1,
                Capacity = 1
            };
        }
Exemplo n.º 2
0
 /// <summary>
 /// Конструктор класс.
 /// </summary>
 /// <param name="auditory_repository">Интерфейс репозитория аудиторий.</param>
 public AuditoryService(IAuditoryRepository auditory_repository)
 {
     _auditoryRepository = auditory_repository;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Конструктор без параметров.
 /// </summary>
 public AuditoryService()
 {
     _auditoryRepository = new AuditoryRepository();
 }
Exemplo n.º 4
0
        public void SetUp()
        {
            _auditoryRepository = Mock.Of<IAuditoryRepository>();
            _auditoryService = new AuditoryService(_auditoryRepository);

            _auditory = new AuditoryItem()
            {
                Id = 1,
                Number = 1,
                FullName = "Auditory 1",
                Memo = "New auditory 1",
                Level = 1,
                Capacity = 1
            };
        }
Exemplo n.º 5
0
 /// <summary>
 /// Конструктор класс.
 /// </summary>
 /// <param name="auditory_repository">Интерфейс репозитория аудиторий.</param>
 public AuditoryService(IAuditoryRepository auditory_repository)
 {
     _auditoryRepository = auditory_repository;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Конструктор без параметров.
 /// </summary>
 public AuditoryService()
 {
     _auditoryRepository = new AuditoryRepository();
 }