feat: Из dal перенесены все модели в Domain. Из dal переименованы service в repository, вынесены в Core.
This commit is contained in:
@@ -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>();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user