Bumblebee.IntegrationTests.Setup.SessionTests.Given_environment_and_custom_settings_When_capturing.Before C# (CSharp) Method

Before() private method

private Before ( ) : void
return void
		public void Before()
		{
			var currentMethod = CallStack.GetCurrentMethod().GetFullName();

			const string path = @"C:\Temp";
			_filePath = Path.ChangeExtension(Path.Combine(path, currentMethod), "png");
			File.Delete(_filePath);

			var settings = new Settings
			{
				ScreenCapturePath = path
			};

			var environment = new InternetExplorer();
			_session = new Session(environment, settings);
			_session.NavigateTo<CheckboxPage>(GetUrl("Checkbox.html"));
			_returnSession = _session.CaptureScreen(_filePath);
		}
Given_environment_and_custom_settings_When_capturing