public ConnectionPageManager(
     IEventAggregator eventAggregator,
     UCConnectionsListView ucConnectionListView,
     UCConnectionsContent uCConnectionsContent)
 {
     this.eventAggregator      = eventAggregator;
     this.ucConnectionListView = ucConnectionListView;
     this.uCConnectionsContent = uCConnectionsContent;
 }
        public IPageManager Apply()
        {
            if (ucConnectionListView == null)
            {
                ucConnectionListView = resolverFactory.Resolve <UCConnectionsListView>();
            }

            if (uCConnectionsContent == null)
            {
                uCConnectionsContent = resolverFactory.Resolve <UCConnectionsContent>();
            }

            eventAggregator.GetEvent <AddPageEvent>().Publish(new AddPageEventArgument
            {
                PageDefinition = ucConnectionListView
            });

            eventAggregator.GetEvent <AddPageEvent>().Publish(new AddPageEventArgument
            {
                PageDefinition = uCConnectionsContent
            });
            return(this);
        }