protected override void Arrange() { base.Arrange(); RegistrationElement.Property("TypeName").Value = typeof(RegistrationType).AssemblyQualifiedName; AddConstructorCommand = RegistrationElement.AddCommands .SelectMany(x => x.ChildCommands) .OfType<AddRegistrationConstructorCommand>() .FirstOrDefault(); }
protected override bool InnerCanExecute(object parameter) { return(!AddRegistrationConstructorCommand.InjectionMembersContainsConstructorElement(collection)); }