public void Ctor_SetsHttpUserAgentStringAndSearchLauncher()
		{
			// arrange
			const string httpUserAgent = "AdsBot-Google-Mobile (Android; +http://www.google.com/adsbot.html) AppleWebKit";
			const string searchLauncher = "some launcher";

			// act
			var args = new SearchHttpUserAgentInformationEventArgs(httpUserAgent, searchLauncher);

			// assert
			Assert.That(args.HttpUserAgentString, Is.EqualTo(httpUserAgent));
			Assert.That(args.SearchLauncher, Is.EqualTo(searchLauncher));
		}
Пример #2
0
		private void ViewOnSearchHttpUserAgentInformation(object sender, SearchHttpUserAgentInformationEventArgs e)
		{
			var searchLauncher = _httpUserAgentSearchLauncherFactory.Create(e.SearchLauncher);
			searchLauncher.Launch(e.HttpUserAgentString);	
		}
Пример #3
0
		private void DetailsViewOnSearchHttpUserAgentInformationClicked(object sender, SearchHttpUserAgentInformationEventArgs e)
		{
			if (OnSearchHttpUserAgentInformation != null)
			{
				OnSearchHttpUserAgentInformation(this, e);
			}
		}