public void Test_GetAllNotifications_ReturnsOkResult()
        {
            // Arrange
            var mockRepo   = new Mock <IMongoDataRepository <Notification> >();
            var mockHub    = new Mock <IHubContext <LiveNotificationHub> >();
            var controller = new NotificationsController(mockRepo.Object, mockHub.Object, Mapper);

            // Act
            var okResult = controller.GetAllNotifications();

            // Assert
            Assert.IsType <OkObjectResult>(okResult.Result);
        }
        public void Test_GetAllNotifications_ReturnsNotFoundResult()
        {
            // Arrange
            var mockRepo = new Mock <IMongoDataRepository <Notification> >();

            mockRepo.Setup(repo => repo.GetAllAsync())
            .Returns(Task.FromResult((IEnumerable <Notification>) default(Notification)));

            var mockHub    = new Mock <IHubContext <LiveNotificationHub> >();
            var controller = new NotificationsController(mockRepo.Object, mockHub.Object, Mapper);

            // Act
            var notFoundResult = controller.GetAllNotifications();

            // Assert
            Assert.IsType <NotFoundResult>(notFoundResult.Result);
        }