Error messages are now caught at the app level (see if it's a good solution in the long term)

Redesign of the create key file button
This commit is contained in:
BONNEVILLE Geoffroy
2017-11-23 19:02:49 +01:00
parent 675a718107
commit 1b2d25e171
11 changed files with 54 additions and 47 deletions

View File

@@ -36,7 +36,8 @@ namespace ModernKeePassApp.Test
public void TestSave()
{
TestOpen();
Assert.IsTrue(_database.Save(ApplicationData.Current.TemporaryFolder.CreateFileAsync("SaveDatabase.kdbx").GetAwaiter().GetResult()));
_database.Save(ApplicationData.Current.TemporaryFolder.CreateFileAsync("SaveDatabase.kdbx").GetAwaiter().GetResult());
Assert.AreEqual((int)DatabaseHelper.DatabaseStatus.Opened, _database.Status);
_database.Close();
Assert.AreEqual((int)DatabaseHelper.DatabaseStatus.Closed, _database.Status);
TestOpen();

View File

@@ -48,12 +48,12 @@ namespace ModernKeePassApp.Test.Mock
throw new NotImplementedException();
}
public bool Save()
public void Save()
{
throw new NotImplementedException();
}
public bool Save(StorageFile file)
public void Save(StorageFile file)
{
throw new NotImplementedException();
}