Open
Conversation
danlla
requested changes
Mar 17, 2026
danlla
left a comment
There was a problem hiding this comment.
- Нет ридми
- При запуске aspire приложение запускается лишний браузер с клиентом, чтобы этого не происходило можно в профиле запуска клиента в
launchsettings.jsonпроставитьlaunchBrowserвfalse
| private static readonly Faker<Course> _faker = new Faker<Course>() | ||
| .RuleFor(c => c.CourseName, f => f.Company.CatchPhrase() + " курс") | ||
| .RuleFor(c => c.TeacherFullName, f => f.Name.FullName()) | ||
| .RuleFor(c => c.StartDate, f => DateOnly.FromDateTime(f.Date.Future(1))) |
There was a problem hiding this comment.
Есть f.Date.FutureDateOnly
А вообще курс не обязательно должен начаться через год, можно чтобы дата начала была и в прошлом
Comment on lines
+17
to
+18
| var startDateTime = c.StartDate.ToDateTime(TimeOnly.MinValue); | ||
| return DateOnly.FromDateTime(f.Date.Between(startDateTime, startDateTime.AddMonths(6))); |
There was a problem hiding this comment.
f.Date.BetweenDateOnly(c.StartDate, c.StartDate.AddMonths(6));| public static class CourseGenerator | ||
| { | ||
| private static readonly Faker<Course> _faker = new Faker<Course>() | ||
| .RuleFor(c => c.CourseName, f => f.Company.CatchPhrase() + " курс") |
There was a problem hiding this comment.
Если все на английском, то может и слово курс лучше сделать на английском
| <UnorderedListItem><Link To="https://puginarug.com/">Ссылка на форк</Link></UnorderedListItem> | ||
| <UnorderedListItem>Номер <Strong>"№1 "Кэширование"</Strong></UnorderedListItem> | ||
| <UnorderedListItem>Вариант <Strong>№16 "Учебный курс"</Strong></UnorderedListItem> | ||
| <UnorderedListItem>Выполнена <Strong>Чугунов Владислав 6511</Strong> </UnorderedListItem> |
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.
ФИО: Чугунов Владислав
Номер группы: 6511
Номер лабораторной: 1
Номер варианта: 16
Краткое описание предметной области: Учебный курс
Краткое описание добавленных фич: Добавлен сервис генерации и кэширование через redis