Unlimited.Applications.BusinessDesignStudio.Activities.FindRecordsTO.CanRemove C# (CSharp) Méthode

CanRemove() public méthode

public CanRemove ( ) : bool
Résultat bool
        public bool CanRemove()
        {
            if (string.IsNullOrEmpty(SearchCriteria) && string.IsNullOrEmpty(SearchType))
            {
                return true;
            }
            return false;
        }

Usage Example

 public void FindRecordsTO_CanRemove_SearchTypeEmptyAndSearchTypeWithData_ReturnFalse()
 {
     //------------Setup for test--------------------------
     var findRecordsTO = new FindRecordsTO { SearchType = string.Empty, SearchCriteria = "Data" };
     //------------Execute Test---------------------------
     Assert.IsFalse(findRecordsTO.CanRemove());
     //------------Assert Results-------------------------
 }