public void UpdateAlarmInfoReturnsFalse()
        {
            List <AlarmEnble> testData = null;
            var mock = new Mock <IPlantSetupDal>();

            mock.Setup(x => x.UpdateAlarmInfo(testData)).Returns(false);
            var plantManager = new PlantSetUpManager(mock.Object);
            var result       = plantManager.UpdateAlarmInfo(testData);

            Assert.IsNotNull(result);
            Assert.IsFalse(result);
        }
        public void UpdateAlarmInfoReturnsTrue()
        {
            var testData = new List <AlarmEnble> {
                new AlarmEnble {
                    AssetID = 1, AssetName = "Tests", isEnabled = "Y", TagID = 1, TagName = "tests23", Target = 123.34
                },
                new AlarmEnble {
                    AssetID = 2, AssetName = "Tests122", isEnabled = "Y", TagID = 1, TagName = "tests232", Target = 123.34
                }
            };
            var mock = new Mock <IPlantSetupDal>();

            mock.Setup(x => x.UpdateAlarmInfo(testData)).Returns(true);
            var plantManager = new PlantSetUpManager(mock.Object);
            var result       = plantManager.UpdateAlarmInfo(testData);

            Assert.IsNotNull(result);
            Assert.IsTrue(result);
        }