Skip to content

Conversation

@Udjim
Copy link

@Udjim Udjim commented Apr 27, 2023

The completed test task # 1

The list of subtasks:

  1. Add Swagger;
  2. Store the task list in SQL Server (currently using InMemoryDB). The connection string should be stored in the appsettings file;
  3. Add error logging to a file;
  4. Perform refactoring — separate Data Access Layer and Business Layer.

Before running

  1. Check and update the connection string to the MS SQL Server instance in the 'appsettings.json' file;
  2. Execute 'dotnet ef database update' command.

Выполненное тестовое задание № 1

Список подзадач:

  1. Добавить сваггер;
  2. Хранить список задач в SQL Server (сейчас используется InMemoryDB). Строка соединения должна храниться в файле appsettings;
  3. Добавить логирование ошибок в файл;
  4. Сделать рефакторинг — выделить слои Data Access Layer, Business Layer.

Перед запуском:

  1. Обновить строку подключения к экземпляру MS SQL Server в файле 'appsettings.json';
  2. Выполнить команду 'dotnet ef database update'.

Udjim added 5 commits April 27, 2023 18:15
- Changed project's default namespace to TodoApi.
…'TodoItemsService' is for CRUD with 'TodoItemDTO');

- Added 'AutoMapper' lib for 'TodoItem'<->'TodoItemDTO' bidirectional map.
- Changed all 'TodoItemsController's methods to utilize exception handling with 'ExceptionLoggingMiddleware'.
- Connection string is stored in 'appsettings.json' file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant