public void BeforeScenario()
 {
     _settings = new TestRunImportPluginProfile();
     ObjectFactory.Configure(
         x =>
             x.For<TransportMock>().Use(TransportMock.CreateWithoutStructureMapClear(typeof(TestRunImportPluginProfile).Assembly)));
     ObjectFactory.Configure(x => x.AddRegistry<TestRunImportEnvironmentRegistry>());
 }
		protected override void OnBeforeProfileMigrate(TestRunImportPluginProfile profile)
		{
			base.OnBeforeProfileMigrate(profile);

			if (string.IsNullOrEmpty(profile.ResultsFilePath))
			{
				profile.PostResultsToRemoteUrl = true;
			}
		}
		public void BeforeScenario()
		{
			ObjectFactory.Configure(
				x =>
				x.For<TransportMock>().Use(TransportMock.CreateWithoutStructureMapClear(typeof(TestRunImportPluginProfile).Assembly)));
			ObjectFactory.Configure(x => x.AddRegistry<TestRunImportEnvironmentRegistry>());
			Settings = new TestRunImportPluginProfile { FrameworkType = FrameworkType };
			_testCaseTestPlanDtos = new List<TestCaseTestPlanDTO>();
		}
		public void Init()
		{
			ObjectFactory.Initialize(x => x.AddRegistry<TestRunImportEnvironmentRegistry>());
			ObjectFactory.Configure(x => x.For<TransportMock>().Use(TransportMock.CreateWithoutStructureMapClear(typeof(TestRunImportPluginProfileInitializationSagaData).Assembly)));

			_profileSettings = new TestRunImportPluginProfile
			{
				PassiveMode = false,
				Project = 1,
				ResultsFilePath = "C:\\SimpleTestCaseTestResult.xml",
				TestPlan = 1,
				FrameworkType = FrameworkTypes.NUnit
			};
		}
		public void AddProfile(string profileName, TestRunImportPluginProfile settings)
		{
			CurrentProfile = Transport.AddProfile(profileName, settings);
		}