test are still ok!
This commit is contained in:
parent
a450be6f24
commit
beeac58628
27 changed files with 170 additions and 258 deletions
|
|
@ -73,7 +73,7 @@ public class AddCircleMemberDialogTests
|
|||
return context;
|
||||
}
|
||||
/// <summary>
|
||||
/// Mount a real <see cref="MainWindow"/>, build a minimal
|
||||
/// Mount a real <see cref="MainView"/>, build a minimal
|
||||
/// DI graph, push <see cref="CirclesPage"/> then the
|
||||
/// <see cref="AddCircleMemberDialog"/> on top of it.
|
||||
/// Returns the stack size so the test can pin the delta.
|
||||
|
|
@ -98,10 +98,9 @@ public class AddCircleMemberDialogTests
|
|||
services.AddTransient<AddCircleMemberDialogViewModel>();
|
||||
var sp = services.BuildServiceProvider();
|
||||
|
||||
context.Window = new MainWindow();
|
||||
context.Window = new MainView();
|
||||
context.App = (PostIt.App)Application.Current!;
|
||||
context.App.AttachMainWindow(context.Window);
|
||||
context.Window.Show();
|
||||
|
||||
context.page = sp.GetRequiredService<CirclesPage>();
|
||||
context.Window.NavRoot.PushAsync(context.page).GetAwaiter().GetResult();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue