private static void AddTitles(ICollection <string> titles, Country country, string location) { var locationReference = new LocationReference(); LocationQuery.ResolveLocation(locationReference, country, location); AddTitles(titles, country, locationReference); }
private void PostJobAds(IEmployer employer, Country country, string location) { var locationReference = new LocationReference(); LocationQuery.ResolveLocation(locationReference, country, location); PostJobAds(employer, country, locationReference); }
private void PerformSearch(ref int index, Country country, int?distance, string location, IList <string> titles) { // Create member. var member = CreateMember(++index); // Create a job search. var locationReference = LocationQuery.ResolveLocation(country, location); CreateTestSavedJobSearchAlert(member, null, locationReference, distance, DateTime.Now.AddDays(-1)); // Get the email. Execute(true); var email = _emailServer.AssertEmailSent(); Assert.IsNotNull(email, "No email or jobs found."); AssertTitles(email, titles, titles.Count, true); }