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

            Assert.IsNotNull(group);
            Assert.AreEqual(group.Id, 1);
        }
示例#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);
 }
示例#3
0
 protected override void Resolve(ref Student entity)
 {
     base.Resolve(ref entity);
     entity.Group = entity.GroupId <= 0 ? null : studentGroupService.Get(entity.GroupId);
 }