Esempio n. 1
0
        public void WhenCheckPeriodEnd_ThenCorrectValue()
        {
            // Arrange
            // Act
            var dbPath = PeriodMaintenanceService.CheckPeriodEnd();

            // Assert
            Assert.IsNotNull(dbPath);
        }
Esempio n. 2
0
        public App()
        {
            this.InitializeComponent();

            DependencyService.Register <MockDataStore>();
            this.ReadSettingsFile();
            var folderPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);

            this.DatabasePath = Path.Combine(folderPath, this.DatabaseName);
            PeriodMaintenanceService.CheckPeriodEnd(this.DatabasePath);
            SettingsRepository      = new SettingsRepository(this.DatabasePath);
            this.ChordDataViewModel = new ChordDataViewModel {
                Settings = this.SettingsViewModel
            };
            this.FinderViewModel = new FinderViewModel {
                Settings = this.SettingsViewModel
            };
            this.MainPage = new AppShell();
        }