Exemple #1
0
        public async Task MarkAllAsRead_ShouldCallServiceMethodToMarkAllNotificationsAndReturnOkResult()
        {
            var result = await _controller.MarkAllAsRead();

            _notificationsServiceMock.Verify(obj => obj.MarkAllAsReadForCurrentUserAsync());

            result
            .Should()
            .BeOfType <OkResult>();
        }