PageRenderTime 22ms CodeModel.GetById 18ms app.highlight 2ms RepoModel.GetById 1ms 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//===================================================================================
17using System;
18using System.Collections.Generic;
19using System.Linq;
20using System.Text;
21using AcceptanceTestLibrary.Common;
22using System.Windows.Automation;
23using AcceptanceTestLibrary.TestEntityBase;
24using AcceptanceTestLibrary.ApplicationHelper;
25
26namespace Modularity.Tests.AcceptanceTest.TestEntities.Page
27{
28    public static class Shell<TApp>
29        where TApp : AppLauncherBase, new()
30    {
31        public static AutomationElement Window
32        {
33            get { return PageBase<TApp>.Window; }
34            set { PageBase<TApp>.Window = value; }
35        }
36
37        public static AutomationElement ModuleCButton
38        {
39            get { return PageBase<TApp>.FindControlByContent("LoadModuleC"); }
40        }
41
42        public static AutomationElement ModuleXButton
43        {
44            get { return PageBase<TApp>.FindControlByContent("LoadModuleX"); }
45        }
46
47        public static AutomationElement ModuleA
48        {
49            get { return PageBase<TApp>.FindControlByContent("ModuleALoaded"); }
50        }
51
52        public static AutomationElement ModuleB
53        {
54            get { return PageBase<TApp>.FindControlByContent("ModuleBLoaded"); }
55        }
56
57        public static AutomationElement ModuleC
58        {
59            get { return PageBase<TApp>.FindControlByContent("ModuleCLoaded"); }
60        }
61
62        public static AutomationElement ModuleD
63        {
64            get { return PageBase<TApp>.FindControlByContent("ModuleDLoaded"); }
65        }
66
67        public static AutomationElement ModuleY
68        {
69            get { return PageBase<TApp>.FindControlByContent("ModuleYLoaded"); }
70        }
71
72        public static AutomationElement ModuleZ
73        {
74            get { return PageBase<TApp>.FindControlByContent("ModuleZLoaded"); }
75        }
76
77        public static AutomationElement ModuleX
78        {
79            get { return PageBase<TApp>.FindControlByContent("ModuleXLoaded"); }
80        }
81
82        public static AutomationElement ModuleW
83        {
84            get { return PageBase<TApp>.FindControlByContent("ModuleWLoaded"); }
85        }
86        
87    }
88}