public void EditConfigurationReturnsFalse()
        {
            WageUomMapping testData = null;
            var            mock     = new Mock <IPlantSetupDal>();

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

            Assert.IsNotNull(result);
            Assert.IsFalse(result);
        }
        public void EditConfigurationReturnsTrue()
        {
            var testData = new WageUomMapping {
                EnergyName = "tests", EnergyType = "electricity", UOM = "kwh", ID = 1
            };
            var mock = new Mock <IPlantSetupDal>();

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

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