From 92da305fddbb9dab6f69a91dd9cb37af67949704 Mon Sep 17 00:00:00 2001 From: Robbware Date: Mon, 9 Oct 2023 16:52:13 +0100 Subject: [PATCH] Fix TopMenu tests --- COMET.Web.Common.Tests/Shared/TopMenuTestFixture.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/COMET.Web.Common.Tests/Shared/TopMenuTestFixture.cs b/COMET.Web.Common.Tests/Shared/TopMenuTestFixture.cs index 2408d0b9..3c4e0c7e 100644 --- a/COMET.Web.Common.Tests/Shared/TopMenuTestFixture.cs +++ b/COMET.Web.Common.Tests/Shared/TopMenuTestFixture.cs @@ -87,7 +87,12 @@ public void Setup() this.autoRefreshService = new Mock(); this.sourceList = new SourceList(); this.sessionService.Setup(x => x.OpenIterations).Returns(this.sourceList); - this.registeredMenuEntries = new List(); + this.registeredMenuEntries = new List() + { + typeof(ApplicationMenu), + typeof(ModelMenu), + typeof(SessionMenu) + }; this.registeredApplications = new List(); this.registrationService = new Mock(); this.registrationService.Setup(x => x.RegisteredAuthorizedMenuEntries).Returns(this.registeredMenuEntries);