You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
787 B
24 lines
787 B
using Bit.Core.AdminConsole.OrganizationFeatures.OrganizationConnections; |
|
using Bit.Core.Entities; |
|
using Bit.Core.Repositories; |
|
using Bit.Test.Common.AutoFixture; |
|
using Bit.Test.Common.AutoFixture.Attributes; |
|
using NSubstitute; |
|
using Xunit; |
|
|
|
namespace Bit.Core.Test.AdminConsole.OrganizationFeatures.OrganizationConnections; |
|
|
|
[SutProviderCustomize] |
|
public class DeleteOrganizationConnectionCommandTests |
|
{ |
|
[Theory] |
|
[BitAutoData] |
|
public async Task DeleteAsync_CallsDelete(OrganizationConnection connection, |
|
SutProvider<DeleteOrganizationConnectionCommand> sutProvider) |
|
{ |
|
await sutProvider.Sut.DeleteAsync(connection); |
|
|
|
await sutProvider.GetDependency<IOrganizationConnectionRepository>().Received(1) |
|
.DeleteAsync(connection); |
|
} |
|
}
|
|
|