Skip to content

Commit

Permalink
use httpContextMock in ignore and cancel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
frwiqueueit committed Dec 18, 2017
1 parent a7b3cdb commit d07744e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions QueueIT.KnownUserV3.SDK.Tests/KnownUserTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,8 @@ public void ValidateRequestByIntegrationConfig_IgnoreAction()
customerIntegration.Integrations = new IntegrationConfigModel[] { config };
customerIntegration.Version = 3;

var httpContextMock = new HttpContextMock() { MockRequest = new MockHttpRequest() { } };
KnownUser._HttpContextBase = httpContextMock;
UserInQueueServiceMock mock = new UserInQueueServiceMock();
KnownUser._UserInQueueService = (mock);

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

var httpContextMock = new HttpContextMock() { MockRequest = new MockHttpRequest() { } };
KnownUser._HttpContextBase = httpContextMock;
UserInQueueServiceMock mock = new UserInQueueServiceMock();
KnownUser._UserInQueueService = (mock);
// Act
Expand Down

0 comments on commit d07744e

Please sign in to comment.