Example #1
0
        public Type GetViewType(IProcessingChainElementTemplate viewRequester)
        {
            var viewRequesterType = viewRequester.GetType();

            return(!ImageProcessingChainElementsViewDefinitions.ViewDefinitions.ContainsKey(viewRequester.GetType())
                       ? _defaultViewType
                       : ImageProcessingChainElementsViewDefinitions.ViewDefinitions[viewRequesterType]);
        }
Example #2
0
        public void SetUp()
        {
            _viewLocator          = new TestViewLocator();
            _chainElementTemplate = new TestChainElementTemplateTemplateTemplateTemplate();

            _regionName = "Test Region";
            _regionMock = new Mock <IRegion>();
            _regionMock.SetupGet(r => r.Name).Returns(_regionName);
            _regionMock.SetupGet(r => r.Views).Returns(new TestViewsCollection());

            var regionCollection = new TestRegionCollection {
                _regionMock.Object
            };

            _regionManagerMock = new Mock <IRegionManager>();
            _regionManagerMock.SetupGet(r => r.Regions).Returns(regionCollection);
        }