public void WhenCheckPeriodEnd_ThenCorrectValue() { // Arrange // Act var dbPath = PeriodMaintenanceService.CheckPeriodEnd(); // Assert Assert.IsNotNull(dbPath); }
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(); }