Skip to content

Commit

Permalink
Remove redundant class bodies.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nihlus committed Mar 31, 2024
1 parent 9423c3e commit a5007f5
Show file tree
Hide file tree
Showing 17 changed files with 24 additions and 72 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.OAuth2.Abstractions;
/// access token.
/// </summary>
[PublicAPI]
public interface IAuthorizationCodeAccessTokenErrorResponse : IAccessTokenErrorResponse
{
}
public interface IAuthorizationCodeAccessTokenErrorResponse : IAccessTokenErrorResponse;
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,4 @@ namespace Remora.OAuth2.Abstractions;

/// <inheritdoc />
[PublicAPI]
public interface IAuthorizationCodeAuthorizationErrorResponse : IAuthorizationErrorResponse
{
}
public interface IAuthorizationCodeAuthorizationErrorResponse : IAuthorizationErrorResponse;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.OAuth2.Abstractions;
/// response.
/// </summary>
[PublicAPI]
public interface IAuthorizationCodeAuthorizationResponse : IAuthorizationResponse
{
}
public interface IAuthorizationCodeAuthorizationResponse : IAuthorizationResponse;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.OAuth2.Abstractions;
/// access token.
/// </summary>
[PublicAPI]
public interface IClientCredentialsAccessTokenErrorResponse : IAccessTokenErrorResponse
{
}
public interface IClientCredentialsAccessTokenErrorResponse : IAccessTokenErrorResponse;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.OAuth2.Abstractions;
/// response.
/// </summary>
[PublicAPI]
public interface IClientCredentialsAccessTokenResponse : IAccessTokenResponse
{
}
public interface IClientCredentialsAccessTokenResponse : IAccessTokenResponse;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.OAuth2.Abstractions;
/// access token.
/// </summary>
[PublicAPI]
public interface IRefreshAccessTokenErrorResponse : IAccessTokenErrorResponse
{
}
public interface IRefreshAccessTokenErrorResponse : IAccessTokenErrorResponse;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.OAuth2.Abstractions;
/// access token.
/// </summary>
[PublicAPI]
public interface IResourceOwnerPasswordCredentialsAccessTokenErrorResponse : IAccessTokenErrorResponse
{
}
public interface IResourceOwnerPasswordCredentialsAccessTokenErrorResponse : IAccessTokenErrorResponse;
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,4 @@ namespace Remora.OAuth2.Abstractions.OAuthExtensions.DeviceAuthorizationGrant;
/// Represents a failure to perform some remote operation when requesting a token.
/// </summary>
[PublicAPI]
public interface IDeviceAuthorizationAccessTokenErrorResponse : IAccessTokenErrorResponse
{
}
public interface IDeviceAuthorizationAccessTokenErrorResponse : IAccessTokenErrorResponse;
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,4 @@ namespace Remora.OAuth2.Abstractions.OAuthExtensions.DeviceAuthorizationGrant;
/// Represents a failure to perform some remote operation when requesting a token.
/// </summary>
[PublicAPI]
public interface IDeviceAuthorizationAuthorizationErrorResponse : IAccessTokenErrorResponse
{
}
public interface IDeviceAuthorizationAuthorizationErrorResponse : IAccessTokenErrorResponse;
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ namespace Remora.OAuth2.Abstractions.OAuthExtensions;
/// flow.
/// </summary>
[PublicAPI]
public interface IRequestExtension
{
}
public interface IRequestExtension;

/// <summary>
/// Marks a type as being an authorization request extension.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,4 @@ namespace Remora.OAuth2.Abstractions.OAuthExtensions.TokenRevocation;
/// Represents a failure to perform some remote operation when revoking a token.
/// </summary>
[PublicAPI]
public interface ITokenRevocationErrorResponse : IAccessTokenErrorResponse
{
}
public interface ITokenRevocationErrorResponse : IAccessTokenErrorResponse;
Original file line number Diff line number Diff line change
Expand Up @@ -504,15 +504,11 @@ public static void DoesNotRequireState()
/// Tests the <see cref="AuthorizationCodeAccessTokenErrorResponse"/> class.
/// </summary>
public class AuthorizationCodeAccessTokenErrorResponseTests :
JsonBackedTypeTestBase<AuthorizationCodeAccessTokenErrorResponse>
{
}
JsonBackedTypeTestBase<AuthorizationCodeAccessTokenErrorResponse>;

/// <summary>
/// Tests the <see cref="AuthorizationCodeAccessTokenResponse"/> class.
/// </summary>
public class AuthorizationCodeAccessTokenResponseTests :
JsonBackedTypeTestBase<AuthorizationCodeAccessTokenResponse>
{
}
JsonBackedTypeTestBase<AuthorizationCodeAccessTokenResponse>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,11 @@ public static void CreatesRequestWithNoAdditionalProperties()
/// Tests the <see cref="ClientCredentialsAccessTokenErrorResponse"/> class.
/// </summary>
public class ClientCredentialsAccessTokenErrorResponseTests :
JsonBackedTypeTestBase<ClientCredentialsAccessTokenErrorResponse>
{
}
JsonBackedTypeTestBase<ClientCredentialsAccessTokenErrorResponse>;

/// <summary>
/// Tests the <see cref="ClientCredentialsAccessTokenResponse"/> class.
/// </summary>
public class ClientCredentialsAccessTokenResponseTests :
JsonBackedTypeTestBase<ClientCredentialsAccessTokenResponse>
{
}
JsonBackedTypeTestBase<ClientCredentialsAccessTokenResponse>;
}
8 changes: 2 additions & 6 deletions Tests/Remora.OAuth.Tests/Grants/RefreshAccessTokenTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,11 @@ public static void CreatesRequestWithNoAdditionalProperties()
/// Tests the <see cref="RefreshAccessTokenErrorResponse"/> class.
/// </summary>
public class RefreshAccessTokenErrorResponseTests :
JsonBackedTypeTestBase<RefreshAccessTokenErrorResponse>
{
}
JsonBackedTypeTestBase<RefreshAccessTokenErrorResponse>;

/// <summary>
/// Tests the <see cref="RefreshAccessTokenResponse"/> class.
/// </summary>
public class RefreshAccessTokenResponseTests :
JsonBackedTypeTestBase<RefreshAccessTokenResponse>
{
}
JsonBackedTypeTestBase<RefreshAccessTokenResponse>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,11 @@ public static void CreatesRequestWithNoAdditionalProperties()
/// Tests the <see cref="ResourceOwnerPasswordCredentialsAccessTokenErrorResponse"/> class.
/// </summary>
public class ResourceOwnerPasswordCredentialsAccessTokenErrorResponseTests :
JsonBackedTypeTestBase<ResourceOwnerPasswordCredentialsAccessTokenErrorResponse>
{
}
JsonBackedTypeTestBase<ResourceOwnerPasswordCredentialsAccessTokenErrorResponse>;

/// <summary>
/// Tests the <see cref="ResourceOwnerPasswordCredentialsAccessTokenResponse"/> class.
/// </summary>
public class ResourceOwnerPasswordCredentialsAccessTokenResponseTests :
JsonBackedTypeTestBase<ResourceOwnerPasswordCredentialsAccessTokenResponse>
{
}
JsonBackedTypeTestBase<ResourceOwnerPasswordCredentialsAccessTokenResponse>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -152,31 +152,23 @@ public static void CreatesRequestWithCorrectScope()
/// Tests the <see cref="DeviceAuthorizationAccessTokenErrorResponse"/> class.
/// </summary>
public class DeviceAuthorizationAccessTokenErrorResponseTests :
JsonBackedTypeTestBase<DeviceAuthorizationAccessTokenErrorResponse>
{
}
JsonBackedTypeTestBase<DeviceAuthorizationAccessTokenErrorResponse>;

/// <summary>
/// Tests the <see cref="DeviceAuthorizationAccessTokenResponse"/> class.
/// </summary>
public class DeviceAuthorizationAccessTokenResponseTests :
JsonBackedTypeTestBase<DeviceAuthorizationAccessTokenResponse>
{
}
JsonBackedTypeTestBase<DeviceAuthorizationAccessTokenResponse>;

/// <summary>
/// Tests the <see cref="DeviceAuthorizationAuthorizationErrorResponse"/> class.
/// </summary>
public class DeviceAuthorizationAuthorizationErrorResponseTests :
JsonBackedTypeTestBase<DeviceAuthorizationAuthorizationErrorResponse>
{
}
JsonBackedTypeTestBase<DeviceAuthorizationAuthorizationErrorResponse>;

/// <summary>
/// Tests the <see cref="DeviceAuthorizationAuthorizationResponse"/> class.
/// </summary>
public class DeviceAuthorizationAuthorizationResponseTests :
JsonBackedTypeTestBase<DeviceAuthorizationAuthorizationResponse>
{
}
JsonBackedTypeTestBase<DeviceAuthorizationAuthorizationResponse>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,5 @@ public static void CreatesRequestWithCorrectTokenTypeHint()
/// Tests the <see cref="TokenRevocationErrorResponse"/> class.
/// </summary>
public class DeviceAuthorizationAuthorizationResponseTests :
JsonBackedTypeTestBase<TokenRevocationErrorResponse>
{
}
JsonBackedTypeTestBase<TokenRevocationErrorResponse>;
}

0 comments on commit a5007f5

Please sign in to comment.