PageRenderTime 45ms CodeModel.GetById 15ms RepoModel.GetById 1ms 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. using Microsoft.Practices.Composite.Regions;
  18. namespace Microsoft.Practices.Composite.Wpf.Tests.Mocks
  19. {
  20. internal class MockRegionAdapter : IRegionAdapter
  21. {
  22. public MockRegion region = new MockRegion();
  23. public bool InitializeCalled;
  24. public object InitializeArgument;
  25. #region IRegionAdapter Members
  26. public IRegion Initialize(object regionTarget)
  27. {
  28. InitializeCalled = true;
  29. InitializeArgument = regionTarget;
  30. return region;
  31. }
  32. #endregion
  33. }
  34. }