mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-21 12:06:59 +01:00
Build fix
This commit is contained in:
@@ -20,32 +20,32 @@ namespace Tgstation.Server.Api
|
||||
/// <summary>
|
||||
/// The <see cref="ApiVersion"/> header key.
|
||||
/// </summary>
|
||||
public static readonly string ApiVersionHeader = "Api";
|
||||
public const string ApiVersionHeader = "Api";
|
||||
|
||||
/// <summary>
|
||||
/// The <see cref="InstanceId"/> header key.
|
||||
/// </summary>
|
||||
public static readonly string InstanceIdHeader = "Instance";
|
||||
public const string InstanceIdHeader = "Instance";
|
||||
|
||||
/// <summary>
|
||||
/// The <see cref="OAuthProvider"/> header key.
|
||||
/// </summary>
|
||||
public static readonly string OAuthProviderHeader = "OAuthProvider";
|
||||
public const string OAuthProviderHeader = "OAuthProvider";
|
||||
|
||||
/// <summary>
|
||||
/// The JWT authentication header scheme
|
||||
/// </summary>
|
||||
public static readonly string BearerAuthenticationScheme = "Bearer";
|
||||
public const string BearerAuthenticationScheme = "Bearer";
|
||||
|
||||
/// <summary>
|
||||
/// The JWT authentication header scheme
|
||||
/// </summary>
|
||||
public static readonly string BasicAuthenticationScheme = "Basic";
|
||||
public const string BasicAuthenticationScheme = "Basic";
|
||||
|
||||
/// <summary>
|
||||
/// The JWT authentication header scheme
|
||||
/// </summary>
|
||||
public static readonly string OAuthAuthenticationScheme = "OAuth";
|
||||
public const string OAuthAuthenticationScheme = "OAuth";
|
||||
|
||||
/// <summary>
|
||||
/// The current <see cref="System.Reflection.AssemblyName"/>
|
||||
|
||||
@@ -36,8 +36,7 @@ namespace Tgstation.Server.Host.Core.Tests
|
||||
public async Task TestCreateTokenClient()
|
||||
{
|
||||
var mockApp = new Mock<IAssemblyInformationProvider>();
|
||||
mockApp.SetupGet(x => x.Version).Returns(new Version()).Verifiable();
|
||||
mockApp.SetupGet(x => x.VersionPrefix).Returns("TGSTests").Verifiable();
|
||||
mockApp.SetupGet(x => x.ProductInfoHeaderValue).Returns(new ProductInfoHeaderValue("TGSTests", "1.2.3")).Verifiable();
|
||||
|
||||
var factory = new GitHubClientFactory(mockApp.Object);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user