Example #1
0
        public async Task TestInit()
        {
            // Delete all files and folders in the test folder except the database file
            var davFolder = new DirectoryInfo(FileManager.GetDavDataPath());

            foreach (var folder in davFolder.GetDirectories())
            {
                folder.Delete(true);
            }

            // Clear the database
            var database = new davClassLibrary.DataAccess.DavDatabase();
            await database.DropAsync();
        }
Example #2
0
        internal static async Task Setup()
        {
            Dav.IsLoggedIn  = false;
            Dav.AccessToken = null;

            // Delete all files and folders in the test folder except the database file
            var davFolder = new DirectoryInfo(GetDavDataPath());

            foreach (var folder in davFolder.GetDirectories())
            {
                folder.Delete(true);
            }

            // Clear the database
            var database = new davClassLibrary.DataAccess.DavDatabase();
            await database.DropAsync();
        }