public void SectorFrameworkName()
        {
            var savedSearch = new SavedSearchBuilder().WithSearchMode(ApprenticeshipSearchMode.Category).WithLocation("CV1 2WT").WithCategory("CST").WithCategoryFullName("Construction, Planning and the Built Environment").WithSubCategories(new[] { "522", "532" }).WithinDistance(10).Build();

            var name = savedSearch.Name();

            name.Should().Be("Construction, Planning and the Built Environment within 10 miles of CV1 2WT");
        }
        public void SectorSearchName()
        {
            var savedSearch = new SavedSearchBuilder().WithSearchMode(ApprenticeshipSearchMode.Category).WithCategory("CST").WithCategoryFullName("Construction, Planning and the Built Environment").WithinDistance(0).Build();

            var name = savedSearch.Name();

            name.Should().Be("Construction, Planning and the Built Environment within England");
        }
        public void KeywordSearchFieldSearchName(ApprenticeshipSearchField apprenticeshipSearchField, string expectedPrefix)
        {
            var savedSearch = new SavedSearchBuilder().WithSearchField(apprenticeshipSearchField.ToString()).WithKeywords("engineering").WithinDistance(5).WithLocation("CV1 2WT").Build();

            var name = savedSearch.Name();

            name.Should().Be(string.Format("{0}engineering within 5 miles of CV1 2WT", expectedPrefix));
        }
        public void EnglandSearchName()
        {
            var savedSearch = new SavedSearchBuilder().WithKeywords("engineering").WithinDistance(0).WithLocation("CV1 2WT").Build();

            var name = savedSearch.Name();

            name.Should().Be("engineering within England");
        }
        public void LocationSearchName()
        {
            var savedSearch = new SavedSearchBuilder().WithinDistance(10).WithLocation("Coventry").Build();

            var name = savedSearch.Name();

            name.Should().Be("Within 10 miles of Coventry");
        }