mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 17:42:49 -05:00
Add is sponsored item to subscription response
This commit is contained in:
@ -393,10 +393,10 @@ namespace Bit.Api.Test.Controllers
|
||||
.GetBySponsoringOrganizationUserIdAsync(orgUser.Id)
|
||||
.Returns((OrganizationSponsorship)sponsorship);
|
||||
|
||||
var exception = await Assert.ThrowsAsync<BadRequestException>(() =>
|
||||
sutProvider.Sut.RevokeSponsorship(orgUser.OrganizationId.ToString()));
|
||||
await sutProvider.Sut.RevokeSponsorship(orgUser.OrganizationId.ToString());
|
||||
|
||||
await sutProvider.GetDependency<IOrganizationSponsorshipRepository>().Received(1).DeleteAsync(sponsorship);
|
||||
|
||||
Assert.Contains("You are not currently sponsoring an organization.", exception.Message);
|
||||
await sutProvider.GetDependency<IOrganizationSponsorshipService>()
|
||||
.DidNotReceiveWithAnyArgs()
|
||||
.RemoveSponsorshipAsync(default, default);
|
||||
|
Reference in New Issue
Block a user