Ejemplo n.º 1
0
        public void DeleteRangeNull()
        {
            adaptadorStepsInFields.Setup(item => item.SaveChanges()).Returns(1);
            BusinessRules.Interfaces.IStepsInFields BusinessRulesStepsInFields = new BusinessRules.BusinessRules.StepsInFields(adaptadorStepsInFields.Object);
            var objReturn = BusinessRulesStepsInFields.DeleteRange(null);

            Assert.IsTrue(objReturn == null);
        }
Ejemplo n.º 2
0
        public void DeleteRangeFalse()
        {
            adaptadorStepsInFields.Setup(item => item.SaveChanges()).Returns(1);
            BusinessRules.Interfaces.IStepsInFields BusinessRulesStepsInFields = new BusinessRules.BusinessRules.StepsInFields(adaptadorStepsInFields.Object);
            var objReturn = BusinessRulesStepsInFields.DeleteRange(x => x.IdStep == 100);

            Assert.IsTrue(objReturn != null && !objReturn.Value);
        }