public async Task When_GetAsync_Is_Executed_Then_Push_Notifications_Client_Is_Called()
        {
            _pushNotificationsClientMock.Setup(x =>
                                               x.NotificationMessagesApi.GetNotificationMessagesForCustomerAsync(
                                                   It.IsAny <NotificationMessagesRequestModel>()))
            .Returns(Task.FromResult(_fixture.Build <PaginatedResponseModel <NotificationMessageResponseModel> >()
                                     .Create()));

            await _service.GetAsync("dummy customer id", It.IsAny <int>(), It.IsAny <int>());

            _pushNotificationsClientMock.Verify(
                x => x.NotificationMessagesApi.GetNotificationMessagesForCustomerAsync(
                    It.IsAny <NotificationMessagesRequestModel>()), Times.Once);
        }
        public async Task <PaginatedNotificationMessagesResponse> GetCustomerNotificationMessagesAsync(
            [FromQuery] PaginationRequestModel request)
        {
            var customerId = _requestContext.UserId;

            var result = await _notificationMessagesService.GetAsync(customerId, request.CurrentPage, request.PageSize);

            return(_mapper.Map <PaginatedNotificationMessagesResponse>(result));
        }