Beispiel #1
0
        private static void AddTitles(ICollection <string> titles, Country country, string location)
        {
            var locationReference = new LocationReference();

            LocationQuery.ResolveLocation(locationReference, country, location);
            AddTitles(titles, country, locationReference);
        }
Beispiel #2
0
        private void PostJobAds(IEmployer employer, Country country, string location)
        {
            var locationReference = new LocationReference();

            LocationQuery.ResolveLocation(locationReference, country, location);
            PostJobAds(employer, country, locationReference);
        }
Beispiel #3
0
        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);
        }