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; }
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(); }