public void GetByIdTest()
        {
            var group = service.Get(1);

            Assert.IsNotNull(group);
            Assert.AreEqual(group.Id, 1);
        }
Ejemplo n.º 2
0
 protected override void Resolve(ref Lecture entity)
 {
     base.Resolve(ref entity);
     entity.Group  = entity.GroupId <= 0 ? null : studentGroupService.Get(entity.GroupId);
     entity.Lector = entity.LectorId <= 0 ? null : employeeService.Get(entity.LectorId);
     entity.Room   = entity.RoomId <= 0 ? null : roomService.Get(entity.RoomId);
 }
Ejemplo n.º 3
0
 protected override void Resolve(ref Student entity)
 {
     base.Resolve(ref entity);
     entity.Group = entity.GroupId <= 0 ? null : studentGroupService.Get(entity.GroupId);
 }