37 lines
953 B
C#
37 lines
953 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using System.Runtime.Versioning;
|
|
using Microsoft.Extensions.PlatformAbstractions;
|
|
|
|
public class TestApplicationEnvironment : IApplicationEnvironment
|
|
{
|
|
private readonly IApplicationEnvironment _original;
|
|
|
|
public TestApplicationEnvironment(IApplicationEnvironment original, string name, string basePath)
|
|
{
|
|
_original = original;
|
|
ApplicationName = name;
|
|
ApplicationBasePath = basePath;
|
|
}
|
|
|
|
public string ApplicationName { get; }
|
|
|
|
public string ApplicationVersion
|
|
{
|
|
get
|
|
{
|
|
return _original.ApplicationVersion;
|
|
}
|
|
}
|
|
|
|
public string ApplicationBasePath { get; }
|
|
|
|
public FrameworkName RuntimeFramework
|
|
{
|
|
get
|
|
{
|
|
return _original.RuntimeFramework;
|
|
}
|
|
}
|
|
} |