Skip to content

Лаб. 1 6413 Гололобова Полина#276

Closed
Tattaboe wants to merge 4 commits intoitsecd:mainfrom
Tattaboe:main
Closed

Лаб. 1 6413 Гололобова Полина#276
Tattaboe wants to merge 4 commits intoitsecd:mainfrom
Tattaboe:main

Conversation

@Tattaboe
Copy link

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

@github-actions github-actions bot added In progress Код в процессе проверки Lab 1 Лабораторная №1. Классы labels Feb 13, 2026
Copy link

@DmitryKrakhmalev DmitryKrakhmalev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Есть замечания которые необходимо устранить. Я советую вам пользоваться информацией о предупреждениях в Visual Studio, там указаны многие ошибки.

Image

Comment on lines 1 to 5
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cleanup

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;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cleanup

/// <summary>
/// Вычисление возраста врача на указанную дату
/// </summary>
public int GetAge(DateTime onDate) => onDate.Year - BirthYear;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давайте лучше сделаем не год рождения а дату рождения, тогда вы более точно сможете найти возраст.

Comment on lines 1 to 5
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cleanup

/// <summary>
/// Дата рождения
/// </summary>
public DateTime BirthDate { get; set; }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вот тут у вас как раз дата, это правильнее. Сделайте также для доктора.

LinkAppointmentsWithDoctorsAndPatients();
}

private List<Specialization> GetSpecializations() =>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Пометить static

new() { Id = 10, Name = "Эндокринолог", Code = "ENDOCRINOLOGIST", Description = "Гормональные нарушения" }
];

private List<Doctor> GetDoctors() =>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

static

}
];

private List<Patient> GetPatients() =>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

static

}
];

private List<Appointment> GetAppointments()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

static

@@ -0,0 +1,175 @@
using Polyclinic.Domain.Entities;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cleanup

Copy link

@DmitryKrakhmalev DmitryKrakhmalev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Приступайте ко 2 и 3 лабораторной работе. Можете сделать вместе

@DmitryKrakhmalev DmitryKrakhmalev added Approved Лабораторная зачтена and removed In progress Код в процессе проверки labels Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved Лабораторная зачтена Lab 1 Лабораторная №1. Классы

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants