mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-24 03:40:07 +02:00
feature: Server error provider added, client notification service added
This commit is contained in:
1 parent
3c67595d94
commit
b928e0fec9
14 files changed
+200
-11
No files matched your search
@@ -13,6 +13,7 @@ namespace WotBlitzStatisticsPro.Blazor.Tests
|
||||
{
|
||||
protected Mock<IMediator> MediatorMock;
|
||||
protected Mock<ISearchDialogService> SearchServiceMock;
|
||||
protected Mock<INotificationsService> NotificationsServiceMock;
|
||||
protected MockNavigationManager NavigationManagerMock;
|
||||
|
||||
[SetUp]
|
||||
@@ -21,13 +22,16 @@ namespace WotBlitzStatisticsPro.Blazor.Tests
|
||||
MediatorMock = new();
|
||||
SearchServiceMock = new();
|
||||
NavigationManagerMock = new();
|
||||
NotificationsServiceMock = new ();
|
||||
|
||||
TestContext = new Bunit.TestContext();
|
||||
TestContext.Services.AddSingleton(MediatorMock.Object);
|
||||
TestContext.Services.AddLocalization();
|
||||
|
||||
TestContext.Services.AddSingleton<DialogService>();
|
||||
TestContext.Services.AddSingleton<NotificationService>();
|
||||
TestContext.Services.AddSingleton(SearchServiceMock.Object);
|
||||
TestContext.Services.AddSingleton(NotificationsServiceMock.Object);
|
||||
|
||||
|
||||
TestContext.Services.AddSingleton<NavigationManager>(NavigationManagerMock);
|
||||
|
||||
Reference in new issue
Block a user