PageRenderTime 41ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/V2.2/trunk/Quickstarts/Modularity/Modularity.Tests.AcceptanceTest/Modularity.Tests.AcceptanceTest/TestEntities/Page/Shell.cs

#
C# | 88 lines | 60 code | 12 blank | 16 comment | 0 complexity | 14fc987c2e3863862afa601185e18e79 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 System;
  18. using System.Collections.Generic;
  19. using System.Linq;
  20. using System.Text;
  21. using AcceptanceTestLibrary.Common;
  22. using System.Windows.Automation;
  23. using AcceptanceTestLibrary.TestEntityBase;
  24. using AcceptanceTestLibrary.ApplicationHelper;
  25. namespace Modularity.Tests.AcceptanceTest.TestEntities.Page
  26. {
  27. public static class Shell<TApp>
  28. where TApp : AppLauncherBase, new()
  29. {
  30. public static AutomationElement Window
  31. {
  32. get { return PageBase<TApp>.Window; }
  33. set { PageBase<TApp>.Window = value; }
  34. }
  35. public static AutomationElement ModuleCButton
  36. {
  37. get { return PageBase<TApp>.FindControlByContent("LoadModuleC"); }
  38. }
  39. public static AutomationElement ModuleXButton
  40. {
  41. get { return PageBase<TApp>.FindControlByContent("LoadModuleX"); }
  42. }
  43. public static AutomationElement ModuleA
  44. {
  45. get { return PageBase<TApp>.FindControlByContent("ModuleALoaded"); }
  46. }
  47. public static AutomationElement ModuleB
  48. {
  49. get { return PageBase<TApp>.FindControlByContent("ModuleBLoaded"); }
  50. }
  51. public static AutomationElement ModuleC
  52. {
  53. get { return PageBase<TApp>.FindControlByContent("ModuleCLoaded"); }
  54. }
  55. public static AutomationElement ModuleD
  56. {
  57. get { return PageBase<TApp>.FindControlByContent("ModuleDLoaded"); }
  58. }
  59. public static AutomationElement ModuleY
  60. {
  61. get { return PageBase<TApp>.FindControlByContent("ModuleYLoaded"); }
  62. }
  63. public static AutomationElement ModuleZ
  64. {
  65. get { return PageBase<TApp>.FindControlByContent("ModuleZLoaded"); }
  66. }
  67. public static AutomationElement ModuleX
  68. {
  69. get { return PageBase<TApp>.FindControlByContent("ModuleXLoaded"); }
  70. }
  71. public static AutomationElement ModuleW
  72. {
  73. get { return PageBase<TApp>.FindControlByContent("ModuleWLoaded"); }
  74. }
  75. }
  76. }