aspnetcore/test/Microsoft.AspNetCore.Hostin.../Fakes/RuntimeEnvironment.cs

25 lines
803 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 Microsoft.Extensions.PlatformAbstractions;
namespace Microsoft.AspNetCore.Hosting.Fakes
{
public class RuntimeEnvironment : IRuntimeEnvironment
{
public string OperatingSystem { get; } = "TestOs";
public string OperatingSystemVersion { get; } = "TestOsVersion";
public string RuntimeArchitecture { get; } = "TestArch";
public string RuntimeType { get; } = "TestRuntime";
public string RuntimeVersion { get; } = "TestRuntimeVersion";
public string RuntimePath { get; } = "TestRuntimePath";
public Platform OperatingSystemPlatform => Platform.Unknown;
}
}