Example #1
0
 public Assumption(Assumption other)
 {
     _assumptionValues = new List<AssumptionValue>(other._assumptionValues);
     _selectedIndex = other.SelectedIndex;
     _originalIndex = other.SelectedIndex;
     Values = new List<string>(other.Values);
     DescriptionAfter = other.DescriptionAfter;
     DescriptionBefore = other.DescriptionBefore;
 }
Example #2
0
        public async Task<SearchResult> ApplyAssumption(Assumption changed)
        {
            if (_url.Contains(changed.GetQueryString()))
            {
                return this;
            }

            if (changed.SelectedIndex == 0)
            {
                return this;
            }

            _states = ""; // Reset the states when assumptions change
            return await RunSearch();
        }