public async Task Check
 (
     UomItemPageModel expectedPage,
     UomItemPage actualPage
 )
 {
     Assert.AreEqual(expectedPage.TitleText, actualPage.Title, "UomItemPage Title bad");
     Assert.AreEqual(expectedPage.Name, actualPage.NameEntry.Text, "UomItemPage Name bad");
     Assert.AreEqual(expectedPage.Description, actualPage.DescriptionEntry.Text, "UomItemPage Description bad");
 }
        public async Task ClickAddOnUomsPage()
        {
            // legitimize action
            if (NavState != NavState.OnUomsPage)
            {
                throw new Exception("Can't SelectUomItemToEdit() if not on Uoms page");
            }

            ExpectedUomItemPage = GetNewExpectedUomItemPage();
            ExpectedUomItemPage.SetUomId(0);
            ExpectedUomItemPage.SetItemIsBeingEdited(false);
            NavState = NavState.OnUomItemPage;
            NavCount++;
            if (!CheckForRelogin())
            {
                await ExpectedUomItemPage.OnAppearingAsync();
            }
        }
        public async Task SelectUomItemToEdit(int index)
        {
            // legitimize action
            if (NavState != NavState.OnUomsPage)
            {
                throw new Exception("Can't SelectUomItemToEdit() if not on Uoms page");
            }

            var selectedListItemId = ExpectedUomsCollectionPage.Select(index).Id;

            ExpectedUomItemPage = GetNewExpectedUomItemPage();
            ExpectedUomItemPage.SetUomId(selectedListItemId);
            ExpectedUomItemPage.SetItemIsBeingEdited(true);
            NavState = NavState.OnUomItemPage;
            NavCount++;
            if (!CheckForRelogin())
            {
                await ExpectedUomItemPage.OnAppearingAsync();
            }
        }