public void SaveSettings_WhenDatabaseThrowsError_ShouldThrowException()
        {
            //Arrange
            mockDataAccess
            .Setup(x => x.ExecuteNonQuery(
                       It.IsAny <string>(),
                       "prc_ISISSettingsSave",
                       It.IsAny <CommandType>(),
                       It.IsAny <SqlParameter[]>(),
                       ref It.Ref <List <SqlParameter> > .IsAny))
            .Throws <Exception>();

            //Act and Assert
            Assert.Throws <Exception>(() => codeTables.SaveSettings(1, "name", "value", "comment", "delete", 10));

            mockExceptionHandling.VerifyAll();
        }