/// <summary> /// Initializes a new instance of the class <see cref="ItemsPlacementConnector"/>. /// </summary> /// <param name="viewModelViewMatcher">The service for a connected object's view lookup.</param> /// <param name="connectedDragDrop">The service for dragging an object connected to the user interface.</param> public ItemsPlacementConnector( IViewModelViewMatcher viewModelViewMatcher, IConnectedDragDrop connectedDragDrop) : this(viewModelViewMatcher, connectedDragDrop, ItemsPlacementConnectorFlags.Default) { }
/// <summary> /// Initializes a new instance of the class <see cref="ItemsPlacementConnector"/>. /// </summary> /// <param name="viewModelViewMatcher">The service for a connected object's view lookup.</param> /// <param name="connectedDragDrop">The service for dragging an object connected to the user interface.</param> /// <param name="flags">Configuration flags of the created <see cref="ItemsPlacementConnector"/>.</param> public ItemsPlacementConnector( IViewModelViewMatcher viewModelViewMatcher, IConnectedDragDrop connectedDragDrop, ItemsPlacementConnectorFlags flags) : base(flags) { Contract.Requires <ArgumentNullException>(viewModelViewMatcher != null); Contract.Requires <ArgumentNullException>(connectedDragDrop != null); this._viewModelViewMatcher = viewModelViewMatcher; this._connectedDragDrop = connectedDragDrop; }
public void Initialize() { this._viewMatcher = Substitute.For <IViewModelViewMatcher>(); this._connectedDragDrop = Substitute.For <IConnectedDragDrop>(); }