pschelpdesk/Vendor/Prise.Tests.Integration/Prise.IntegrationTestsHost/Custom/AppHostFrameworkProvider.cs
2024-11-04 20:45:34 +01:00

20 lines
531 B
C#

using System.Reflection;
using System.Runtime.Versioning;
namespace Prise.IntegrationTestsHost
{
public interface IHostFrameworkProvider
{
string ProvideHostFramework();
}
/// <summary>
/// This is required for testing
/// </summary>
public class AppHostFrameworkProvider : IHostFrameworkProvider
{
public string ProvideHostFramework() => typeof(AppHostFrameworkProvider).Assembly
.GetCustomAttribute<TargetFrameworkAttribute>()?
.FrameworkName;
}
}