public async Task ThenDoesNotSendsCommandIfNotMarkedAsRead()
        {
            //act
            await _controller.SaveRuleNotificationChoice(12, RuleType.GlobalRule, false);

            //assert
            _mockMediator.Verify(m => m.Send(
                                     It.IsAny <MarkRuleAsReadCommand>(),
                                     It.IsAny <CancellationToken>()), Times.Never);
        }
        public async Task ThenSendsCorrectCommand(
            [Frozen] Mock <IMediator> mockMediator,
            EmployerReservationsController controller)
        {
            //arrange
            var expectedRuleId     = 12L;
            var expectedTypeOfRule = RuleType.GlobalRule;
            var expectedUserId     = "123";

            var claim = new Claim(EmployerClaims.IdamsUserIdClaimTypeIdentifier, expectedUserId);

            controller.HttpContext.User = new ClaimsPrincipal(new ClaimsIdentity(new[] { claim }));

            //act
            await controller.SaveRuleNotificationChoice(expectedRuleId, expectedTypeOfRule, true);

            //assert
            mockMediator.Verify(m => m.Send(It.Is <MarkRuleAsReadCommand>(c =>
                                                                          c.Id.Equals(expectedUserId) &&
                                                                          c.RuleId.Equals(expectedRuleId) &&
                                                                          c.TypeOfRule.Equals(expectedTypeOfRule)), It.IsAny <CancellationToken>()));
        }