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