diff --git a/COMET.Web.Common.Tests/Services/SessionManagement/SessionServiceTestFixture.cs b/COMET.Web.Common.Tests/Services/SessionManagement/SessionServiceTestFixture.cs index 5820d5f1..6c54ff78 100644 --- a/COMET.Web.Common.Tests/Services/SessionManagement/SessionServiceTestFixture.cs +++ b/COMET.Web.Common.Tests/Services/SessionManagement/SessionServiceTestFixture.cs @@ -36,6 +36,9 @@ namespace COMET.Web.Common.Tests.Services.SessionManagement using COMET.Web.Common.Enumerations; using COMET.Web.Common.Services.SessionManagement; + + using Microsoft.Extensions.Logging; + using Moq; using NUnit.Framework; @@ -59,8 +62,13 @@ public class SessionServiceTestFixture [SetUp] public void Setup() { + var logger = new Mock>(); + this.session = new Mock(); - this.sessionService = new SessionService { Session = this.session.Object }; + this.sessionService = new SessionService(logger.Object) + { + Session = this.session.Object + }; this.assembler = new Assembler(this.uri); this.domain = new DomainOfExpertise(Guid.NewGuid(), this.assembler.Cache, this.uri); diff --git a/COMETwebapp.Tests/Components/SystemRepresentation/SystemRepresentationBodyTestFixture.cs b/COMETwebapp.Tests/Components/SystemRepresentation/SystemRepresentationBodyTestFixture.cs index b5ea94c6..7eecc457 100644 --- a/COMETwebapp.Tests/Components/SystemRepresentation/SystemRepresentationBodyTestFixture.cs +++ b/COMETwebapp.Tests/Components/SystemRepresentation/SystemRepresentationBodyTestFixture.cs @@ -46,6 +46,7 @@ namespace COMETwebapp.Tests.Components.SystemRepresentation using COMETwebapp.ViewModels.Components.SystemRepresentation; using Microsoft.Extensions.DependencyInjection; + using Microsoft.Extensions.Logging; using Moq; @@ -74,10 +75,15 @@ public class SystemRepresentationPageTestFixture [SetUp] public void SetUp() { - this.context = new TestContext(); + var logger = new Mock>(); + this.context = new TestContext(); this.session = new Mock(); - this.sessionService = new SessionService { Session = this.session.Object }; + + this.sessionService = new SessionService(logger.Object) + { + Session = this.session.Object + }; this.context.Services.AddSingleton(this.sessionService); this.context.ConfigureDevExpressBlazor();