Unlimited.Applications.BusinessDesignStudio.Activities.FindRecordsTO.CanRemove C# (CSharp) Method

CanRemove() public method

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

Usage Example

コード例 #1
0
 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-------------------------
 }