Closed
Conversation
DmitryKrakhmalev
requested changes
Feb 13, 2026
Comment on lines
1
to
5
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Linq; | ||
| using System.Text; | ||
| using System.Threading.Tasks; |
Comment on lines
1
to
7
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Linq; | ||
| using System.Text; | ||
| using System.Threading.Tasks; | ||
|
|
||
| using Polyclinic.Domain.Enums; |
| /// <summary> | ||
| /// Вычисление возраста врача на указанную дату | ||
| /// </summary> | ||
| public int GetAge(DateTime onDate) => onDate.Year - BirthYear; |
There was a problem hiding this comment.
Давайте лучше сделаем не год рождения а дату рождения, тогда вы более точно сможете найти возраст.
Comment on lines
1
to
5
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Linq; | ||
| using System.Text; | ||
| using System.Threading.Tasks; |
| /// <summary> | ||
| /// Дата рождения | ||
| /// </summary> | ||
| public DateTime BirthDate { get; set; } |
There was a problem hiding this comment.
Вот тут у вас как раз дата, это правильнее. Сделайте также для доктора.
| LinkAppointmentsWithDoctorsAndPatients(); | ||
| } | ||
|
|
||
| private List<Specialization> GetSpecializations() => |
| new() { Id = 10, Name = "Эндокринолог", Code = "ENDOCRINOLOGIST", Description = "Гормональные нарушения" } | ||
| ]; | ||
|
|
||
| private List<Doctor> GetDoctors() => |
| } | ||
| ]; | ||
|
|
||
| private List<Patient> GetPatients() => |
| } | ||
| ]; | ||
|
|
||
| private List<Appointment> GetAppointments() |
| @@ -0,0 +1,175 @@ | |||
| using Polyclinic.Domain.Entities; | |||
DmitryKrakhmalev
approved these changes
Feb 16, 2026
DmitryKrakhmalev
left a comment
There was a problem hiding this comment.
Приступайте ко 2 и 3 лабораторной работе. Можете сделать вместе
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

ФИО: Гололобова Полина
Номер группы: 6413
Номер лабораторной: 1
Номер варианта: 64
Краткое описание предметной области: Поликлиника
Краткое описание добавленных фич: Реализована доменная модель: классы Patient, Doctor, Appointment, Specialization, перечисления. Созданы тестовые данные. Написаны 5 unit-тестов с LINQ-запросами по заданию.