Browse Source

修复单元测试异常

qinchaoyue 1 month ago
parent
commit
da549b73de
1 changed files with 5 additions and 0 deletions
  1. 5 0
      test/Hotline.Tests/Startup.cs

+ 5 - 0
test/Hotline.Tests/Startup.cs

@@ -11,6 +11,7 @@ using Hotline.Application.Jobs;
 using Hotline.Application.StatisticalReport.CallReport;
 using Hotline.Authentications;
 using Hotline.CallCenter.Configs;
+using Hotline.CallCenter.Tels;
 using Hotline.Configurations;
 using Hotline.DI;
 using Hotline.EventBus;
@@ -51,6 +52,7 @@ using XF.Domain.Repository.Events;
 using XF.EasyCaching;
 using XF.Utility.MQ;
 using Xunit.DependencyInjection.AspNetCoreTesting;
+using Hotline.Pdf;
 
 namespace Hotline.Tests;
 public class Startup
@@ -111,6 +113,8 @@ public class Startup
             //mq
             services.AddTestMq(configuration);
 
+            services.AddPdfManager();
+
             services.AddScoped<IDataPermissionFilterBuilder, DataPermissionFilterBuilder>();
             services.AddScoped(typeof(IRepository<>), typeof(BaseRepository<>));
             //services.AddScoped<IHttpContextAccessor, DefaultHttpContextAccessor>();
@@ -181,6 +185,7 @@ public class Startup
             services.AddScoped<IFileDomainService, FileDomainService>();
             services.AddScoped<IGuiderSystemService, TiqnQueService>();
             services.AddScoped<IWorkflowDomainService, WorkflowDomainService>();
+            services.AddScoped<ICallTelClient,XingTang.CallTelClient>();
 
             //ServiceLocator.Instance = services.BuildServiceProvider();
         }