Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nabilatrhea committed Sep 8, 2023
1 parent 20f9a35 commit baa5ff6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions COMET.Web.Common.Tests/Shared/TopMenuTestFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ namespace COMET.Web.Common.Tests.Shared
using CDP4Dal;

using COMET.Web.Common.Components;
using COMET.Web.Common.Enumerations;
using COMET.Web.Common.Model;
using COMET.Web.Common.Services.ConfigurationService;
using COMET.Web.Common.Services.NotificationService;
using COMET.Web.Common.Services.RegistrationService;
using COMET.Web.Common.Services.SessionManagement;
Expand Down Expand Up @@ -71,7 +73,8 @@ public class TopMenuTestFixture
private Mock<IAuthenticationService> authenticationService;
private Mock<IRegistrationService> registrationService;
private Mock<IVersionService> versionService;
private SourceList<Iteration> sourceList;
private Mock<IConfigurationService> configurationService;
private SourceList<Iteration> sourceList;
private List<Type> registeredMenuEntries;
private List<Application> registeredApplications;

Expand Down Expand Up @@ -103,7 +106,9 @@ public void Setup()
this.context.Services.AddSingleton<IModelMenuViewModel, ModelMenuViewModel>();
this.context.Services.AddSingleton<IAuthorizedMenuEntryViewModel, AuthorizedMenuEntryViewModel>();
this.context.Services.AddSingleton<INotificationService, NotificationService>();
this.context.ConfigureDevExpressBlazor();
this.configurationService = new Mock<IConfigurationService>();
this.context.Services.AddSingleton(this.configurationService.Object);
this.context.ConfigureDevExpressBlazor();
}

[TearDown]
Expand Down

0 comments on commit baa5ff6

Please sign in to comment.