public void NotificationNull()
        {
            //Arrange | Act
            var repository = new SyscatRepository(GetDB2Settings, null);

            //Assert
            Assert.NotNull(repository);
        }
        public void DB2SettingsNull()
        {
            //Arrange | Act
            var repository = new SyscatRepository(null, GetNotification);

            //Assert
            Assert.True(GetNotification.HasNotification(LogLevelExtension.ReturnLevel));

            var notifications = GetNotification.GetNotification(LogLevelExtension.ReturnLevel);

            Assert.Equal(Resources.DB2SettingMissing, notifications.First().Message);
        }
        public void DB2SettingsEmpty()
        {
            //Arrange
            var settings = new Mock <IOptions <DB2Setting> >();

            settings.Setup(c => c.Value).Returns(new DB2Setting());

            //Act
            var repository = new SyscatRepository(settings.Object, GetNotification);

            //Assert
            Assert.True(GetNotification.HasNotification(LogLevelExtension.ReturnLevel));

            var notifications = GetNotification.GetNotification(LogLevelExtension.ReturnLevel);

            Assert.Equal(Resources.DB2SettingMissing, notifications.First().Message);
        }