mirror of
https://github.com/bitwarden/server.git
synced 2024-11-28 13:15:12 +01:00
59fa6935b4
* Added offboarding survey response to cancellation when FF is on. * Removed service methods to prevent unnecessary upstream registrations * Forgot to actually remove the injected command in the services * Rui's feedback * Add missing summary * Missed [FromBody]
19 lines
434 B
C#
19 lines
434 B
C#
using Bit.Core.Exceptions;
|
|
using Xunit;
|
|
|
|
using static Bit.Core.Billing.Utilities;
|
|
|
|
namespace Bit.Core.Test.Billing;
|
|
|
|
public static class Utilities
|
|
{
|
|
public static async Task ThrowsContactSupportAsync(Func<Task> function)
|
|
{
|
|
var contactSupport = ContactSupport();
|
|
|
|
var exception = await Assert.ThrowsAsync<GatewayException>(function);
|
|
|
|
Assert.Equal(contactSupport.Message, exception.Message);
|
|
}
|
|
}
|