public void Update_Existing_QC_Rule_Test()
        {
            IQualityCheckRepository repository = new QualityCheckRepository(testDBContext);

            var selQcRule = repository.GetQualityCheckByID(1);

            selQcRule.Description = "Updated description";
            selQcRule.EnforceOrder = false;
            selQcRule.IsActive = false;
            selQcRule.IsVisibleToAll = false;
            selQcRule.Name = "Updated Name";

            repository.UpdateQualityCheckRule(selQcRule);

            testDBContext.Commit();

            var updatedQcRule = repository.GetQualityCheckByID(1);


            Assert.AreEqual(updatedQcRule.Description, "Updated description");
            Assert.AreEqual(updatedQcRule.Name, "Updated Name");
            Assert.IsFalse((bool)updatedQcRule.EnforceOrder);
            Assert.IsFalse((bool)updatedQcRule.IsVisibleToAll);
            Assert.IsFalse((bool)updatedQcRule.IsActive);
        }
        public void Throw_Exception_On_Update_Null_QCRule_Test()
        {
            IQualityCheckRepository repository = new QualityCheckRepository(testDBContext);

            repository.UpdateQualityCheckRule(null);
        }