protected override IEnumerable<TemplatedInjectionMemberCommandBase> GetTemplateCommandsForType(Type registrationType)
        {
            foreach (var property in registrationType.GetProperties(BindingFlags.Public | BindingFlags.Instance))
            {
                if (property.CanWrite && property.GetIndexParameters().Length == 0)
                {
                    var templatedPropery = new AddTemplatedInjectionPropertyCommand(collection, property, UIService);
                    templatedPropery.DefaultCollectionElementAddCommandInitialization(applicationModel);

                    yield return templatedPropery;
                }
            }
        }
        protected override IEnumerable <TemplatedInjectionMemberCommandBase> GetTemplateCommandsForType(Type registrationType)
        {
            foreach (var property in registrationType.GetProperties(BindingFlags.Public | BindingFlags.Instance))
            {
                if (property.CanWrite && property.GetIndexParameters().Length == 0)
                {
                    var templatedPropery = new AddTemplatedInjectionPropertyCommand(collection, property, UIService);
                    templatedPropery.DefaultCollectionElementAddCommandInitialization(applicationModel);

                    yield return(templatedPropery);
                }
            }
        }
        protected override void Arrange()
        {
            base.Arrange();

            InjectionMembersCollection = (InjectionMemberCollectionViewModel)base.RegistrationElement.ChildElement("InjectionMembers");
            var property = typeof(ClassWithProperty).GetProperties().First();

            AddTemplatedPropertyCommand = new AddTemplatedInjectionPropertyCommand(
                                                    InjectionMembersCollection,
                                                    property,
                                                    UIServiceMock.Object);

            AddTemplatedPropertyCommand.DefaultCollectionElementAddCommandInitialization(Container.Resolve<IApplicationModel>());
        }