Simpler is better
This commit is contained in:
parent
11aaf36789
commit
246111dee1
3 changed files with 0 additions and 9 deletions
|
|
@ -100,8 +100,6 @@ public class AddCircleMemberDialogTests
|
|||
|
||||
context.Window = new MainWindow();
|
||||
context.App = (PostIt.App)Application.Current!;
|
||||
context.App.DataTemplates.Clear();
|
||||
context.App.DataTemplates.Add(new ViewLocator(sp));
|
||||
context.App.AttachMainWindow(context.Window);
|
||||
context.Window.Show();
|
||||
|
||||
|
|
|
|||
|
|
@ -114,11 +114,6 @@ public class MainPageButtonsTests
|
|||
var window = new MainWindow();
|
||||
var page = new MainPage { DataContext = vm };
|
||||
var app = (PostIt.App)Application.Current!;
|
||||
if (vm.Services is not null)
|
||||
{
|
||||
app.DataTemplates.Clear();
|
||||
app.DataTemplates.Add(new ViewLocator(vm.Services));
|
||||
}
|
||||
app.AttachMainWindow(window);
|
||||
window.Show();
|
||||
window.NavRoot.PushAsync(page).GetAwaiter().GetResult();
|
||||
|
|
|
|||
|
|
@ -140,8 +140,6 @@ public class PostAclDialogTests
|
|||
|
||||
var window = new MainWindow();
|
||||
var app = (App)Application.Current!;
|
||||
app.DataTemplates.Clear();
|
||||
app.DataTemplates.Add(new ViewLocator(sp));
|
||||
app.AttachMainWindow(window);
|
||||
window.Show();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue