public void DeleteNotificationTemplateById_Service_Fail()
        {
            // Arrange
            notificationTemplateService = new NotificationTemplateService(mockRepository.Object, mockLogger.Object, mockCache.Object, mockTelemetry.Object);
            mockRepository.Setup(x => x.Delete <NotificationTemplate>(It.IsAny <int>())).Returns(false).Verifiable();

            // Act
            var response = notificationTemplateService.DeleteNotificationTemplate(It.IsAny <int>());

            // Assert
            Assert.IsNotNull(response);
            Assert.IsFalse(response.Result);
            Assert.IsTrue(response.Notifications.HasErrors());
            Assert.IsInstanceOfType(response, typeof(GenericServiceResponse <bool>));
            mockRepository.Verify(x => x.Delete <NotificationTemplate>(It.IsAny <int>()), Times.Once);
        }
 public JsonResult DeleteNotificationTemplate(int id)
 {
     return(Json(_notificationTemplateService.DeleteNotificationTemplate(id)));
 }