PageRenderTime 21ms CodeModel.GetById 11ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/V4/PrismLibrary/Desktop/Prism.Tests/Mocks/MockRegion.cs

#
C# | 120 lines | 82 code | 22 blank | 16 comment | 0 complexity | 55ae957ad5f7815771c20e434080f46a MD5 | raw file
  1//===================================================================================
  2// Microsoft patterns & practices
  3// Composite Application Guidance for Windows Presentation Foundation and Silverlight
  4//===================================================================================
  5// Copyright (c) Microsoft Corporation.  All rights reserved.
  6// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
  7// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
  8// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  9// FITNESS FOR A PARTICULAR PURPOSE.
 10//===================================================================================
 11// The example companies, organizations, products, domain names,
 12// e-mail addresses, logos, people, places, and events depicted
 13// herein are fictitious.  No association with any real company,
 14// organization, product, domain name, email address, logo, person,
 15// places, or events is intended or should be inferred.
 16//===================================================================================
 17using System.ComponentModel;
 18using Microsoft.Practices.Prism.Regions;
 19
 20namespace Microsoft.Practices.Prism.Tests.Mocks
 21{
 22    internal class MockRegion : IRegion
 23    {
 24        public event PropertyChangedEventHandler PropertyChanged;
 25
 26        private MockViewsCollection views = new MockViewsCollection();
 27
 28        public IViewsCollection Views
 29        {
 30            get { return views; }
 31        }
 32
 33        public IViewsCollection ActiveViews
 34        {
 35            get { throw new System.NotImplementedException(); }
 36        }
 37
 38        public object Context
 39        {
 40            get { throw new System.NotImplementedException(); }
 41            set { throw new System.NotImplementedException(); }
 42        }
 43
 44        public string Name { get; set; }
 45
 46        public IRegionManager Add(object view)
 47        {
 48            this.views.Add(view);
 49            return null;
 50        }
 51
 52        public IRegionManager Add(object view, string viewName)
 53        {
 54            throw new System.NotImplementedException();
 55        }
 56
 57        public IRegionManager Add(object view, string viewName, bool createRegionManagerScope)
 58        {
 59            throw new System.NotImplementedException();
 60        }
 61
 62        public void Remove(object view)
 63        {
 64            throw new System.NotImplementedException();
 65        }
 66
 67        public void Activate(object view)
 68        {
 69            throw new System.NotImplementedException();
 70        }
 71
 72        public void Deactivate(object view)
 73        {
 74            throw new System.NotImplementedException();
 75        }
 76
 77        public object GetView(string viewName)
 78        {
 79            throw new System.NotImplementedException();
 80        }
 81
 82        public IRegionManager RegionManager { get; set; }
 83
 84        public IRegionBehaviorCollection Behaviors
 85        {
 86            get { throw new System.NotImplementedException(); }
 87        }
 88
 89        public bool Navigate(System.Uri source)
 90        {
 91            throw new System.NotImplementedException();
 92        }
 93
 94
 95        public void RequestNavigate(System.Uri target, System.Action<NavigationResult> navigationCallback)
 96        {
 97            throw new System.NotImplementedException();
 98        }
 99
100
101        public IRegionNavigationService NavigationService
102        {
103            get { throw new System.NotImplementedException(); }
104            set { throw new System.NotImplementedException(); }
105        }
106
107
108        public System.Comparison<object> SortComparison
109        {
110            get
111            {
112                throw new System.NotImplementedException();
113            }
114            set
115            {
116                throw new System.NotImplementedException();
117            }
118        }
119    }
120}