Build fix

This commit is contained in:
Jordan Brown
2020-11-23 17:04:38 -05:00
parent e36548f342
commit baec815743
2 changed files with 7 additions and 8 deletions
+6 -6
View File
@@ -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);