public LectureServiceAsync(IStudentGroupServiceAsync studentGroupService,
                            IEmployeeServiceAsync employeeService,
                            IRoomServiceAsync roomService,
                            IAuditManager auditManager)
     : base(auditManager)
 {
     this.studentGroupService = studentGroupService;
     this.employeeService     = employeeService;
     this.roomService         = roomService;
 }
Beispiel #2
0
        public RoomServiceAsyncTests()
        {
            this.service = new RoomService(new RoomRepository(new DataContext("defaultconnection")));

            service.AddAsync(new Room
            {
                Number    = "123",
                SitsCount = 15
            }).Wait();

            service.AddAsync(new Room
            {
                Number    = "124",
                SitsCount = 17
            }).Wait();
        }