Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rvazarkar committed Jul 9, 2024
1 parent be570f3 commit b346631
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit/ACLProcessorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.DirectoryServices;
using System.Linq;
using System.Security.AccessControl;
using System.Threading;
using System.Threading.Tasks;
using CommonLibTest.Facades;
using Moq;
Expand Down Expand Up @@ -65,6 +66,9 @@ public async Task ACLProcessor_TestKnownDataAddMember()
{
var mockLdapUtils = new MockLDAPUtils();
var mockUtils = new Mock<ILdapUtils>();
var mockData = new[] { LdapResult<ISearchResultEntry>.Fail() };
mockUtils.Setup(x => x.Query(It.IsAny<LdapQueryParameters>(), It.IsAny<CancellationToken>()))
.Returns(mockData.ToAsyncEnumerable());
mockUtils.Setup(x => x.ResolveIDAndType(It.IsAny<string>(), It.IsAny<string>()))
.Returns((string a, string b) => mockLdapUtils.ResolveIDAndType(a, b));
var sd = new ActiveDirectorySecurityDescriptor(new ActiveDirectorySecurity());
Expand Down

0 comments on commit b346631

Please sign in to comment.