This commit is contained in:
SamSys
2025-02-18 16:16:33 +03:30
parent c17146e1b3
commit e6dd81de9b
107 changed files with 102308 additions and 66 deletions

View File

@@ -1,11 +1,13 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using WorkFlow.Application;
using WorkFlow.Application.Contracts.AdminWorkFlow;
using WorkFlow.Application.Contracts.WorkFlow;
using WorkFlow.Domain.RollCallConfirmedAbsenceAgg;
using WorkFlow.Domain.RollCallConfirmedWithoutLunchBreakAgg;
using WorkFlow.Infrastructure.ACL.Checkout;
using WorkFlow.Infrastructure.ACL.CustomizedWorkshopSettings;
using WorkFlow.Infrastructure.ACL.EmployeeDocuments;
using WorkFlow.Infrastructure.ACL.RollCall;
using WorkFlow.Infrastructure.EfCore;
using WorkFlow.Infrastructure.EfCore.Repository;
@@ -16,7 +18,9 @@ namespace WorkFlow.Infrastructure.Config
{
public static void Configure(IServiceCollection services, string connectionString)
{
services.AddTransient<IWorkFlowApplication, WorkFlowApplication>();
services.AddTransient<IWorkFlowApplication, WorkFlowApplication>();
services.AddTransient<IAdminWorkFlowApplication, AdminWorkFlowApplication>();
services.AddTransient<IRollCallConfirmedAbsenceRepository, RollCallConfirmedAbsenceRepository>();
services.AddTransient<IRollCallConfirmedWithoutLunchBreakRepository, RollCallConfirmedWithoutLunchBreakRepository>();
@@ -25,6 +29,7 @@ namespace WorkFlow.Infrastructure.Config
services.AddTransient<IWorkFlowCheckoutACL, WorkFlowCheckoutACL>();
services.AddTransient<IWorkFlowRollCallACL, WorkFlowRollCallACL>();
services.AddTransient<IWorkFlowCustomizedWorkshopSettingsACL, WorkFlowCustomizedWorkshopSettingsACL>();
services.AddTransient<IWorkFlowEmployeeDocumentsACL, WorkFlowEmployeeDocumentsACL>();
services.AddDbContext<WorkFlowContext>(x =>