mirror of
https://github.com/bitwarden/server
synced 2025-12-23 19:53:40 +00:00
Add resend sponsorship offer api endpoint
This commit is contained in:
@@ -92,5 +92,20 @@ namespace Bit.Core.Test.Services
|
||||
await sutProvider.GetDependency<IOrganizationSponsorshipRepository>().Received(1)
|
||||
.DeleteAsync(createdSponsorship);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[BitAutoData]
|
||||
public async Task SendSponsorshipOfferAsync(Organization org, OrganizationSponsorship sponsorship,
|
||||
SutProvider<OrganizationSponsorshipService> sutProvider)
|
||||
{
|
||||
await sutProvider.Sut.SendSponsorshipOfferAsync(org, sponsorship);
|
||||
|
||||
await sutProvider.GetDependency<IMailService>().Received(1)
|
||||
.SendFamiliesForEnterpriseOfferEmailAsync(sponsorship.OfferedToEmail, org.Name, Arg.Any<string>());
|
||||
}
|
||||
|
||||
// TODO: test validateSponsorshipAsync
|
||||
|
||||
// TODO: test RemoveSponsorshipAsync
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user