Ejemplo n.º 1
0
        public void ApplyKilometersFilter()
        {
            driver.Url = Url.Deautos.Views.Listing.Main;
            var listing = new ListingPage(driver);

            listing.ApplyKilometersFilter();
        }
Ejemplo n.º 2
0
        public void CountListing()
        {
            driver.Url = Url.Deautos.Views.Listing.Main;
            var listing = new ListingPage(driver);

            IsTrue(listing.GetNumberItems());
        }
Ejemplo n.º 3
0
        public void ContactListing()
        {
            driver.Url = Url.Deautos.Views.Listing.Main;
            var listing = new ListingPage(driver);

            listing.Contact();
        }
Ejemplo n.º 4
0
        public void ApplyPriceFilter()
        {
            driver.Url = Url.Deautos.Views.Listing.Main;
            var listing = new ListingPage(driver);

            IsTrue(listing.ApplyPriceFilter());
        }
Ejemplo n.º 5
0
        // GET: Home

        public ActionResult Index()
        {
            List <Meal> meals = context.Meals
                                .Include(m => m.Restaurant.User)
                                .Include(m => m.CategoryMeal)
                                .Include(m => m.Kitchen)
                                .Include(m => m.Reviews)
                                .OrderByDescending(m => m.Orders.Count).Take(9).ToList();
            List <CategoryMeal> categoryMeals = context.CategoryMeals.OrderByDescending(c => c.Meals.Count).Take(10).ToList();
            List <Restaurant>   restaurants   = context.Restaurants
                                                .Include(r => r.Meals)
                                                .Include(r => r.User)
                                                .OrderByDescending(r => r.OrderList.Count).Take(10).ToList();
            List <Place> places = context.Places
                                  .Include(p => p.Restaurants)
                                  .OrderByDescending(p => p.Restaurants.Count).ToList();
            List <Kitchen> kitchens = context.Kitchens
                                      .Include(k => k.Meals)
                                      .OrderBy(k => k.Meals.Count).ToList();

            ListingPage MCRPK = new ListingPage
            {
                meals         = meals,
                categoryMeals = categoryMeals,
                restaurants   = restaurants,
                places        = places,
                kitchens      = kitchens
            };

            return(View(MCRPK));
        }
Ejemplo n.º 6
0
        public void GetListingPageObject_ArgumentNullExceptionRaised_Test()
        {
            // Arrange

            // Act
            var testListingPage = new ListingPage(string.Empty, string.Empty);

            // Assert
        }
Ejemplo n.º 7
0
        public void ThenIClickTheFirstPropertyImage()
        {
            ListingPage listingPage = new ListingPage((AndroidDriver <AndroidElement>)ScenarioContext.Current["androidContext"]);

            PropertyDetailPage = listingPage.ClickImageLink();
        }
Ejemplo n.º 8
0
 public ListingPageActions(ListingPage listingPage, Find find)
 {
     this.listingPage = listingPage;
     this.find        = find;
 }
Ejemplo n.º 9
0
        public Step1Page()
        {
            InitializeComponent();

            foreach (var str in OptimizeModeToPickerIdxCov.Names)
            {
                _opMode.Items.Add(str);
            }

            foreach (var str in RowSprayingModeToPickerIdxCov.Names)
            {
                _rowSprayingMode.Items.Add(str);
            }

            BindingContext = App.Container.GetInstance<Step1VM>();

            ViewUtils.SetupStepView(_rLayout, _helpSv, _questionContainer, VM.Common.QuestionTapped);

            var sprayerLP = new ListingPage<Sprayer>(true);
            sprayerLP.ItemChosen += (sender, arg) =>
            {
                VM.CurrSprayer = arg.ChosenItem;
            };
            var sprayerAIO = new AddItemOption()
            {
                CurrItemPropertyName = "CurrSprayer",
                MenuItem = new MenuItem(L10n.Localize("Sprayers", null), () => sprayerLP)
            };

            var orchardBlockLP = new ListingPage<OrchardBlock>(true);
            orchardBlockLP.ItemChosen += (sender, arg) =>
            {
                VM.CurrOrchardBlock = arg.ChosenItem;
            };
            var obAIO = new AddItemOption()
            {
                CurrItemPropertyName = "CurrOrchardBlock",
                MenuItem = new MenuItem("Orchard Blocks", () => orchardBlockLP)
            };

            var opLP = new ListingPage<Operator>(true);
            opLP.ItemChosen += (sender, arg) =>
            {
                VM.CurrOperator = arg.ChosenItem;
            };
            var opAIO = new AddItemOption()
            {
                CurrItemPropertyName = "CurrOperator",
                MenuItem = new MenuItem("Operators", () => opLP)
            };

            var mItems = new List<NPCBase>
            {
                sprayerAIO,
                obAIO,
                opAIO
            };

            _itemList.ItemsSource = mItems;
            _itemList.ItemTemplate = new DataTemplate(() =>
            {
                var vCell = new TextCellWithDisclosure();
                vCell.SetBinding(TextCell.TextProperty, "MenuItem.MenuTitle");
                vCell.SetBinding(TextCell.DetailProperty, "DetailText");
                return vCell;
            });
            _itemList.ItemTapped += (object sender, ItemTappedEventArgs e) =>
            {
                var currAIO = (AddItemOption)(e.Item);

                Navigation.PushAsync(currAIO.MenuItem.RootPage);
                _itemList.SelectedItem = null;
            };
        }
        public void WhenIPressAllowOnWelcomeSplashPage()
        {
            SplashPage splashpage = new SplashPage((AndroidDriver <AndroidElement>)ScenarioContext.Current["androidContext"]);

            ListingPage = splashpage.AllowAppFeature();
        }
Ejemplo n.º 11
0
 public void Initialize()
 {
     testSearchResponse = File.ReadAllText(@"C:\Users\Dj Music\Documents\Visual Studio 2015\Projects\Property Finder App\Supplied files\TestSearchResponse.html");
     testListingPage    = new ListingPage(testSearchResponse, string.Empty);
 }