PageRenderTime 25ms CodeModel.GetById 17ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/V1/spikes/AGCompositeApplicationLibrary/AGComposite.Wpf.Tests/Mocks/MockRegionAdapter.cs

#
C# | 39 lines | 18 code | 5 blank | 16 comment | 0 complexity | eedcd46fc026d3ff5393deeaed52d8b7 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//===============================================================================
17
18
19using Microsoft.Practices.Composite.Regions;
20
21namespace Microsoft.Practices.Composite.Wpf.Tests.Mocks
22{
23    internal class MockRegionAdapter : IRegionAdapter
24    {
25        public MockRegion region = new MockRegion();
26        public bool InitializeCalled;
27        public object InitializeArgument;
28        #region IRegionAdapter Members
29
30        public IRegion Initialize(object regionTarget)
31        {
32            InitializeCalled = true;
33            InitializeArgument = regionTarget;
34            return region;
35        }
36
37        #endregion
38    }
39}