diff --git a/test/unit/ACLProcessorTest.cs b/test/unit/ACLProcessorTest.cs index 4501631a..b9a7128a 100644 --- a/test/unit/ACLProcessorTest.cs +++ b/test/unit/ACLProcessorTest.cs @@ -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; @@ -65,6 +66,9 @@ public async Task ACLProcessor_TestKnownDataAddMember() { var mockLdapUtils = new MockLDAPUtils(); var mockUtils = new Mock(); + var mockData = new[] { LdapResult.Fail() }; + mockUtils.Setup(x => x.Query(It.IsAny(), It.IsAny())) + .Returns(mockData.ToAsyncEnumerable()); mockUtils.Setup(x => x.ResolveIDAndType(It.IsAny(), It.IsAny())) .Returns((string a, string b) => mockLdapUtils.ResolveIDAndType(a, b)); var sd = new ActiveDirectorySecurityDescriptor(new ActiveDirectorySecurity());