Ejemplo n.º 1
0
        public void Setup()
        {
            // Initilize Xamarin Forms
            MockForms.Init();

            // Add each model here to warm up and load it.
            Game.Helpers.DataSetsHelper.WarmUp();

            ViewModel = ScoreIndexViewModel.Instance;
        }
Ejemplo n.º 2
0
        public async Task ScoreIndexPage_OnAppearing_Valid_Should_Pass()
        {
            // Arrange

            ScoreIndexViewModel ViewModel = ScoreIndexViewModel.Instance;

            // Act
            OnAppearing();

            // Reset

            // Assert
            Assert.IsTrue(true); // Got to here, so it happened...
        }
        public void ScoreIndexPage_OnAppearing_Valid_Empty_Should_Pass()
        {
            // Arrange

            ScoreIndexViewModel ViewModel = ScoreIndexViewModel.Instance;

            ViewModel.Dataset.Clear();

            // Act
            OnAppearing();

            // Reset

            // Assert
            Assert.IsTrue(true); // Got to here, so it happened...
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Constructor for Index Page
        ///
        /// Get the ScoreIndexView Model
        /// </summary>
        public ScoreIndexPage()
        {
            InitializeComponent();

            BindingContext = ViewModel = ScoreIndexViewModel.Instance;
        }