mirror of
https://github.com/bitwarden/server.git
synced 2024-12-02 13:53:23 +01:00
ffd988eeda
* Refactor Core.Billing prior to adding new logic * Add ProviderBillingQueries.GetSubscriptionData * Add ProviderBillingController.GetSubscriptionAsync
19 lines
431 B
C#
19 lines
431 B
C#
using Bit.Core.Billing;
|
|
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<BillingException>(function);
|
|
|
|
Assert.Equal(contactSupport.Message, exception.Message);
|
|
}
|
|
}
|