250501 커밋
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user