コード例 #1
0
	    public TestContentPublishingBuilder WithContentPlaces(DynamicContentPlace[] contentPlaces)
	    {
		    foreach (var publishingGroupContentPlace in contentPlaces.Select(dynamicContentPlace => new PublishingGroupContentPlace
			    {
				    DynamicContentPublishingGroupId = _contentPublishingGroup.DynamicContentPublishingGroupId,
				    DynamicContentPlaceId = dynamicContentPlace.DynamicContentPlaceId
			    }))
		    {
			    _contentPublishingGroup.ContentPlaces.Add(publishingGroupContentPlace);
		    }

		    return this;
	    }
コード例 #2
0
		protected CreateContentPlaceViewModel(DynamicContentPlace item)
		{
			InnerItem = item;
			InnerItem.PropertyChanged += InnerItem_PropertyChanged;
		}
コード例 #3
0
		public ContentPlaceOverviewStepViewModel(DynamicContentPlace item)
			: base(item)
		{

		}
コード例 #4
0
		public CreateContentPlaceViewModel(IViewModelsFactory<IContentPlaceOverviewStepViewModel> overviewVmFactory, DynamicContentPlace item)
		{
			var itemParameter = new KeyValuePair<string, object>("item", item);
			RegisterStep(overviewVmFactory.GetViewModelInstance(itemParameter));
		}