mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
[BEEEP] [PM-18518] Cleanup StripePaymentService (#5435)
This commit is contained in:
23
test/Core.Test/Extensions/SubscriberExtensionsTests.cs
Normal file
23
test/Core.Test/Extensions/SubscriberExtensionsTests.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using Bit.Core.AdminConsole.Entities.Provider;
|
||||
using Bit.Core.Billing.Extensions;
|
||||
using Xunit;
|
||||
|
||||
namespace Bit.Core.Test.Extensions;
|
||||
|
||||
public class SubscriberExtensionsTests
|
||||
{
|
||||
[Theory]
|
||||
[InlineData("Alexandria Villanueva Gonzalez Pablo", "Alexandria Villanueva Gonzalez")]
|
||||
[InlineData("John Snow", "John Snow")]
|
||||
public void GetFormattedInvoiceName_Returns_FirstThirtyCaractersOfName(string name, string expected)
|
||||
{
|
||||
// arrange
|
||||
var provider = new Provider { Name = name };
|
||||
|
||||
// act
|
||||
var actual = provider.GetFormattedInvoiceName();
|
||||
|
||||
// assert
|
||||
Assert.Equal(expected, actual);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user