feat: Из dal перенесены все модели в Domain. Из dal переименованы service в repository, вынесены в Core.

This commit is contained in:
Mikhail Trubnikov
2026-04-30 10:35:31 +10:00
parent f1ea69da1f
commit eb78dfd6a8
356 changed files with 1817 additions and 1985 deletions

View File

@@ -2,15 +2,17 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using PARR.Core.Repositories.Interfaces.Job;
using PARR.Core.Repositories.Interfaces.Unit;
using PARR.DAL.Context;
using PARR.DAL.DomainServices.UnitFilterService;
using PARR.DAL.Repositories.Job;
using PARR.DAL.Repositories.Unit;
// Предположим, что у вас есть реализации IJobService и IUnitService
// Если нет, можно создать моки, но лучше использовать реальные, если они просты
using PARR.DAL.Services.Implementations.Job; // Пример: JobService
using PARR.DAL.Services.Implementations.Unit; // Пример: UnitService
using PARR.DAL.Services.Interfaces.Job;
using PARR.DAL.Services.Interfaces.Unit;
namespace PARR.DAL.IntegrationTests.Integration
{
@@ -44,12 +46,12 @@ namespace PARR.DAL.IntegrationTests.Integration
// Регистрируем контекст
serviceCollection.AddScoped<DataContext>(provider => _context);
serviceCollection.AddScoped<IJobService, JobService>();
serviceCollection.AddScoped<IUnitService, UnitService>();
serviceCollection.AddScoped<IJobRepository, JobRepository>();
serviceCollection.AddScoped<IUnitRepository, UnitRepository>();
// Добавляем новые сервисы
serviceCollection.AddScoped<IUnitInUnitService, UnitInUnitService>();
serviceCollection.AddScoped<IUnitInValueService, UnitInValueService>();
serviceCollection.AddScoped<IUnitInUnitRepository, UnitInUnitRepository>();
serviceCollection.AddScoped<IUnitInValueRepository, UnitInValueRepository>();
// Регистрируем тестируемый сервис
serviceCollection.AddScoped<UnitFilterService>();

View File

@@ -1,7 +1,7 @@
using PARR.DAL.Context;
using PARR.DAL.Contracts;
using PARR.DAL.Models.Job;
using PARR.DAL.Models.Unit;
using PARR.Domain.Entities.Job;
using PARR.Domain.Entities.Unit;
using PARR.Domain.Enums;
using System;
using System.Collections.Generic;