1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 00:22:50 -05:00
Files
bitwarden/test/Core.Test/Billing/Utilities.cs
Rui Tome e027bb4956 Revert "Merge branch 'main' into ac/ac-1682/ef-migrations"
This reverts commit f98646a722, reversing
changes made to 7dfd2821f1.
2024-04-03 15:52:54 +01:00

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);
}
}