public LogExceptionsToDatabase( IUIServiceWpf uiService, PickExceptionStep exceptionStep, SelectDatabaseStep databaseStep) : this(uiService, new IWizardStep[] { exceptionStep, databaseStep }) { }
protected override void Arrange() { base.Arrange(); step = Container.Resolve<SelectDatabaseStep>(); connectionStringSettings = ConnectionStringSection.DescendentConfigurationsOfType<ConnectionStringSettings>().First(); }
protected override void Arrange() { base.Arrange(); step = Container.Resolve<SelectDatabaseStep>(); step.Name.Value = "MyConnection"; step.ConnectionString.Value = "SomeConnectionString"; step.DatabaseProvider.Value = "ADatabaseProvider"; }
protected override void Arrange() { base.Arrange(); GlobalResources.SetDictionary(new KeyedResourceDictionary()); wizard = Container.Resolve<LogExceptionsToDatabase>(); pickExceptionStep = wizard.Steps.OfType<PickExceptionStep>().First(); pickExceptionStep.Policy.Value = "MyPolicy"; pickExceptionStep.ExceptionType.Value = typeof(System.Exception).AssemblyQualifiedName; selectDatabaseStep = wizard.Steps.OfType<SelectDatabaseStep>().First(); selectDatabaseStep.Name.Value = "MyConnection"; selectDatabaseStep.ConnectionString.Value = "AConnectionString"; selectDatabaseStep.DatabaseProvider.Value = "ADatabaseProvider"; }