Example #1
0
        public async Task GetAllNotifications()
        {
            //Arrange
            var controller = new NotificationController(_dao, _authService, new Microsoft.Extensions.Logging.LoggerFactory(), _sms, _email);

            //Act
            var result = await controller.GetAllNotifications();

            //Assert
            var viewResult = Assert.IsType <OkObjectResult>(result);
        }
Example #2
0
        public void GetAllNotifications_ActionExecutes_ReturnsOkObjectResult()
        {
            var result = _controller.GetAllNotifications();

            Assert.IsType <OkObjectResult>(result);
        }