mirror of
https://github.com/bitwarden/server.git
synced 2024-11-29 13:25:17 +01:00
23 lines
702 B
C#
23 lines
702 B
C#
|
using Bit.Core.OrganizationFeatures.OrganizationDomains;
|
|||
|
using Bit.Core.Repositories;
|
|||
|
using Bit.Test.Common.AutoFixture;
|
|||
|
using Bit.Test.Common.AutoFixture.Attributes;
|
|||
|
using NSubstitute;
|
|||
|
using Xunit;
|
|||
|
|
|||
|
namespace Bit.Core.Test.OrganizationFeatures.OrganizationDomains;
|
|||
|
|
|||
|
[SutProviderCustomize]
|
|||
|
public class GetOrganizationDomainByIdQueryTests
|
|||
|
{
|
|||
|
[Theory, BitAutoData]
|
|||
|
public async Task GetOrganizationDomainById_CallsGetByIdAsync(Guid id,
|
|||
|
SutProvider<GetOrganizationDomainByIdQuery> sutProvider)
|
|||
|
{
|
|||
|
await sutProvider.Sut.GetOrganizationDomainById(id);
|
|||
|
|
|||
|
await sutProvider.GetDependency<IOrganizationDomainRepository>().Received(1)
|
|||
|
.GetByIdAsync(id);
|
|||
|
}
|
|||
|
}
|