public LogExceptionsToDatabase( IUIServiceWpf uiService, PickExceptionStep exceptionStep, SelectDatabaseStep databaseStep) : this(uiService, new IWizardStep[] { exceptionStep, databaseStep }) { }
protected override void Arrange() { base.Arrange(); step = Container.Resolve<PickExceptionStep>(); propertyChangedListener = new PropertyChangedListener(step); }
protected override void Arrange() { base.Arrange(); step = Container.Resolve<PickExceptionStep>(); step.ExceptionType.Value = typeof(Exception).AssemblyQualifiedName; step.Policy.Value = "TestPolicy"; step.ReferencedDatabaseName = "SomeDatabaseName"; }
protected override void Arrange() { base.Arrange(); step = Container.Resolve<PickExceptionStep>(); existingPolicy = GetDescendentsOfType<ExceptionPolicyData>().First(); step.Policy.Value = existingPolicy.Name; step.ExceptionType.Value = typeof(BadImageFormatException).AssemblyQualifiedName; }
protected override void Arrange() { base.Arrange(); step = Container.Resolve<PickExceptionStep>(); existingPolicy = GetDescendentsOfType<ExceptionPolicyData>().First(); existingException = existingPolicy.GetDescendentsOfType<ExceptionTypeData>().Last(); var handlerCollection = existingException.GetDescendentsOfType<NamedElementCollection<ExceptionHandlerData>>() .OfType<ElementCollectionViewModel>().First(); existingHandlerName = handlerCollection.AddNewCollectionElement(typeof (LoggingExceptionHandlerData)).Name; step.Policy.Value = existingPolicy.Name; step.ExceptionType.Value = existingException.Property("TypeName").Value; }
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"; }
protected override void Act() { step = Container.Resolve<PickExceptionStep>(); }