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

@@ -1,10 +1,10 @@
using Microsoft.Extensions.Logging;
using Moq;
using PARR.Core.Repositories.Interfaces.Job;
using PARR.Core.Repositories.Interfaces.Unit;
using PARR.DAL.Contracts;
using PARR.DAL.DomainServices.Shortcodes;
using PARR.DAL.DomainServices.UnitFilterService;
using PARR.DAL.Services.Interfaces.Job;
using PARR.DAL.Services.Interfaces.Unit;
namespace PARR.DAL.Tests.DomainServices.Implementations
{
@@ -12,10 +12,10 @@ namespace PARR.DAL.Tests.DomainServices.Implementations
{
private readonly Mock<ILogger<ShortcodesService>> loggerMock = new();
private readonly Mock<SettingsFromDb> settingsMock = new();
private readonly Mock<IJobService> jobServiceMock = new();
private readonly Mock<IUnitService> unitServiceMock = new();
private readonly Mock<IUnitInValueService> unitInValueServiceMock = new();
private readonly Mock<IUnitFieldService> unitFieldServiceMock = new();
private readonly Mock<IJobRepository> jobServiceMock = new();
private readonly Mock<IUnitRepository> unitServiceMock = new();
private readonly Mock<IUnitInValueRepository> unitInValueServiceMock = new();
private readonly Mock<IUnitFieldRepository> unitFieldServiceMock = new();
private readonly Mock<IUnitFilterService> unitFilterServiceMock = new();
[Fact]

View File

@@ -1,13 +1,4 @@
using FluentAssertions;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using Moq;
using PARR.DAL.Context;
using PARR.DAL.DomainServices.Implementations;
using PARR.DAL.Services.Implementations.Job;
using PARR.DAL.Services.Implementations.Unit;
namespace PARR.DAL.Tests
namespace PARR.DAL.Tests
{
public class UnitFilterServiceTests //: IDisposable
{

View File

@@ -1,8 +1,8 @@
using Microsoft.EntityFrameworkCore;
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;

View File

@@ -1,16 +1,16 @@
using Microsoft.Extensions.Logging;
using Moq;
using PARR.Core.Repositories.Interfaces.Schedule;
using PARR.DAL.DomainModels;
using PARR.DAL.Models;
using PARR.DAL.NextRunServices.Subservices;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Entities.Schedule;
using PARR.Domain.Enums;
namespace PARR.DAL.Tests.TransformServices
{
public class EsppScheduleTransformServiceTests
{
private Mock<IEsppSchTypeConfigService> esppSchTypeConfigServiceMock;
private Mock<IEsppSchTypeConfigRepository> esppSchTypeConfigServiceMock;
//private Mock<INextRunModifierService> nextRunModifierServiceMock;
private ILogger<EsppScheduleTransformService> logger;
@@ -18,7 +18,7 @@ namespace PARR.DAL.Tests.TransformServices
public EsppScheduleTransformServiceTests()
{
esppSchTypeConfigServiceMock = new Mock<IEsppSchTypeConfigService>();
esppSchTypeConfigServiceMock = new Mock<IEsppSchTypeConfigRepository>();
//nextRunModifierServiceMock = new Mock<INextRunModifierService>();
var loggerFactory = new LoggerFactory();