mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Build hierarchy instead of using Automapper
Add entities before removing them
This commit is contained in:
@@ -26,11 +26,11 @@ namespace ModernKeePassApp.Test.Mock
|
||||
|
||||
public string Name => "MockDatabase";
|
||||
|
||||
public GroupVm RecycleBin { get; set; }
|
||||
public GroupDetailVm RecycleBin { get; set; }
|
||||
|
||||
public bool RecycleBinEnabled { get; set; }
|
||||
|
||||
public GroupVm RootGroup { get; set; }
|
||||
public GroupDetailVm RootGroup { get; set; }
|
||||
|
||||
public void AddDeletedItem(PwUuid id)
|
||||
{
|
||||
|
@@ -116,7 +116,7 @@ namespace ModernKeePassApp.Test
|
||||
public void TestEntryVm()
|
||||
{
|
||||
var database = new DatabaseServiceMock();
|
||||
var entryVm = new EntryVm(new PwEntry(true, true), new GroupVm(), database, _resource)
|
||||
var entryVm = new EntryDetailVm(new PwEntry(true, true), new GroupDetailVm(), database, _resource)
|
||||
{
|
||||
Title = "Test",
|
||||
UserName = "login",
|
||||
@@ -128,7 +128,7 @@ namespace ModernKeePassApp.Test
|
||||
public void TestGroupVm()
|
||||
{
|
||||
var database = new DatabaseServiceMock();
|
||||
var entryVm = new GroupVm(new PwGroup(true, true), new GroupVm(), database)
|
||||
var entryVm = new GroupDetailVm(new PwGroup(true, true), new GroupDetailVm(), database)
|
||||
{
|
||||
Title = "Test"
|
||||
};
|
||||
|
Reference in New Issue
Block a user