예제 #1
0
        private void Test()
        {
            IDataStore client = new SQLiteDataStore("test.db", "test", false);

            client.Open();

            var pwd = new PasswordItem()
            {
                Name = "test", Username = "******", Password = "******"
            };

            (var passwords, var entries) = GetData(client);

            client.AddPassword(pwd);
            client.AddEntry(new Entry()
            {
                Name = "test", CredentialId = pwd.ID
            });

            (passwords, entries) = GetData(client);

            client.DeletePassword(pwd);

            (passwords, entries) = GetData(client);
        }