// Constructors public AppFixture() { this.uiSession = new AppiumUiSession(); this.App = new UiApp(this.uiSession); this.Common = new Common(this.App); }
// Constructors public UiApp(IUiSession uiSession) { this.externalUiSession = uiSession; this.activeSession = new VolatileState <UiActiveSession>( () => { this.Navigate(UiNavigation.Content.ActiveSession); return(new UiActiveSession(this.externalUiSession.Find(By.ClassName(UiActiveSession.ClassName)))); }); this.settings = new VolatileState <UiSettings>( () => { this.Navigate(UiNavigation.Content.Settings); return(new UiSettings(this.externalUiSession.Find(By.ClassName(UiSettings.ClassName)))); }); }