Skip to content

Commit d07744e

Browse files
committed
use httpContextMock in ignore and cancel tests
1 parent a7b3cdb commit d07744e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

QueueIT.KnownUserV3.SDK.Tests/KnownUserTest.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,8 @@ public void ValidateRequestByIntegrationConfig_IgnoreAction()
799799
customerIntegration.Integrations = new IntegrationConfigModel[] { config };
800800
customerIntegration.Version = 3;
801801

802+
var httpContextMock = new HttpContextMock() { MockRequest = new MockHttpRequest() { } };
803+
KnownUser._HttpContextBase = httpContextMock;
802804
UserInQueueServiceMock mock = new UserInQueueServiceMock();
803805
KnownUser._UserInQueueService = (mock);
804806

@@ -838,6 +840,8 @@ public void ValidateRequestByIntegrationConfig_CancelAction()
838840
customerIntegration.Integrations = new IntegrationConfigModel[] { config };
839841
customerIntegration.Version = 3;
840842

843+
var httpContextMock = new HttpContextMock() { MockRequest = new MockHttpRequest() { } };
844+
KnownUser._HttpContextBase = httpContextMock;
841845
UserInQueueServiceMock mock = new UserInQueueServiceMock();
842846
KnownUser._UserInQueueService = (mock);
843847
// Act

0 commit comments

Comments
 (0)