Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

22 lines
644 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using Microsoft.Extensions.FileProviders;
using Microsoft.Extensions.Hosting;
namespace HordeServer.Tests
{
public class WebHostEnvironmentStub : IHostEnvironment
{
public string ApplicationName { get; set; } = "HordeTest";
public IFileProvider ContentRootFileProvider { get; set; }
public string ContentRootPath { get; set; }
public string EnvironmentName { get; set; } = "Testing";
public WebHostEnvironmentStub()
{
ContentRootPath = Directory.CreateTempSubdirectory("HordeTest").FullName;
ContentRootFileProvider = new PhysicalFileProvider(ContentRootPath);
}
}
}