250501 커밋

This commit is contained in:
2025-05-01 07:23:28 +09:00
parent 98bb2e3c5c
commit 23176551b7
353 changed files with 9972 additions and 6652 deletions

View File

@@ -2,22 +2,16 @@
using NLog.Extensions.Logging;
using ServerCore; using ServerBase;
namespace BrokerTest.Helper;
using System.Reflection;
using BrokerApiServer.Common;
using BrokerApiServer.Controllers;
using BrokerApiServer.Extensions;
using CaliGameApi.Middlewares;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using System.Reflection;
using BrokerApiServer;
using BrokerApiServer.Controllers;
namespace BrokerTest;
public interface IBrokerTestServer
{
HttpClient getTestClient();
@@ -86,7 +80,7 @@ public class BrokerTestServer: IBrokerTestServerLocal
var assembly = Assembly.GetAssembly(typeof(PlanetUserController));
Assert.NotNull(assembly);
builder.Services.AddControllers(options => { options.Filters.Add(new ResultExceptionFilter()); })
.AddApplicationPart(assembly); // 이유는 모르겠지만 이게 없으면 테스트에서 404 에러 발생 - 컨트롤러가 없음
.AddApplicationPart(assembly); // 이게 없으면 테스트에서 404 에러 발생 - 컨트롤러가 없음
builder.Services.AddHealthChecks();
builder.Services.AddEndpointsApiExplorer();