Exemple #1
0
        public void DeleteRangeNull()
        {
            adaptadorTypeFields.Setup(item => item.SaveChanges()).Returns(1);
            BusinessRules.Interfaces.ITypeFields BusinessRulesTypeFields = new BusinessRules.BusinessRules.TypeFields(adaptadorTypeFields.Object);
            var objReturn = BusinessRulesTypeFields.DeleteRange(null);

            Assert.IsTrue(objReturn == null);
        }
Exemple #2
0
        public void DeleteRangeFalse()
        {
            adaptadorTypeFields.Setup(item => item.SaveChanges()).Returns(1);
            BusinessRules.Interfaces.ITypeFields BusinessRulesTypeFields = new BusinessRules.BusinessRules.TypeFields(adaptadorTypeFields.Object);
            var objReturn = BusinessRulesTypeFields.DeleteRange(x => x.Id == 100);

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