public FoodIndexSteps()
 {
     //Resolve App from Feature Container.  This is added with the [Setup] method.
     app = FeatureContext.Current.Get <IApp>("App");
     //Resolve pages that are set up with the AppInitializer InitializeScreens Method
     _MedicineChestPage        = FeatureContext.Current.Get <Pages.MedicineChestPage>("MedicineChestPage");
     _FoodIndexPage            = FeatureContext.Current.Get <Pages.FoodIndexPage>("FoodIndexPage");
     _FoodIndexSearchPage      = FeatureContext.Current.Get <Pages.FoodIndexSearchPage>("FoodIndexSearchPage");
     _FoodIndexFoodDetailsPage = FeatureContext.Current.Get <Pages.FoodIndexFoodDetailsPage>("FoodIndexFoodDetailsPage");
     _OnBoardingPage           = FeatureContext.Current.Get <Pages.OnBoardingPage>("OnBoardingPage");
 }
Exemple #2
0
 public FoodIndexDetailsSteps()
 {
     //Resolve App from Feature Container.  This is added with the [Setup] method.
     app = FeatureContext.Current.Get <IApp>("App");
     //Resolve pages that are set up with the AppInitializer InitializeScreens Method
     _MedicineChestPage             = FeatureContext.Current.Get <Pages.MedicineChestPage>("MedicineChestPage");
     _FoodIndexPage                 = FeatureContext.Current.Get <Pages.FoodIndexPage>("FoodIndexPage");
     _FoodIndexSearchPage           = FeatureContext.Current.Get <Pages.FoodIndexSearchPage>("FoodIndexSearchPage");
     _FoodIndexFoodDetailsPage      = FeatureContext.Current.Get <Pages.FoodIndexFoodDetailsPage>("FoodIndexFoodDetailsPage");
     _FoodIndexFoodIndexSectionPage = FeatureContext.Current.Get <Pages.FoodIndexFoodIndexSectionPage>("FoodIndexFoodIndexSectionPage");
     _FoodIndexNutritionSectionPage = FeatureContext.Current.Get <Pages.FoodIndexNutritionSectionPage>("FoodIndexNutritionSectionPage");
     _FoodIndexBetterForMeSection   = FeatureContext.Current.Get <Pages.FoodIndexBetterForMeSection>("FoodIndexBetterForMeSection");
     _LockedFeaturePage             = FeatureContext.Current.Get <Pages.LockedFeaturePage>("LockedFeaturePage");
 }