protected override void Arrange() { base.Arrange(); RegistrationElement.Property("TypeName").Value = typeof(RegistrationType).AssemblyQualifiedName; AddRegistrationPropertyCommand = RegistrationElement.AddCommands .SelectMany(x => x.ChildCommands) .OfType <AddRegistrationPropertyCommand>() .FirstOrDefault(); }
protected override void Arrange() { base.Arrange(); ElementCollectionViewModel injectionMembersCollection = (ElementCollectionViewModel)RegistrationElement.ChildElement("InjectionMembers"); PropertyElement = injectionMembersCollection.AddNewCollectionElement(typeof(PropertyElement)); }