Update
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using FluentAssertions;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
using Moq;
|
||||
using NetDaemon.HassModel;
|
||||
@@ -24,9 +23,7 @@ public class ExhaustFanControlServiceTests
|
||||
|
||||
private ExhaustFanControlService CreateService(ShowerMonitorOptions? options = null)
|
||||
{
|
||||
return new ExhaustFanControlService(
|
||||
Mock.Of<ILogger<ExhaustFanControlService>>(),
|
||||
Options.Create(options ?? _defaultOptions));
|
||||
return new ExhaustFanControlService(Options.Create(options ?? _defaultOptions));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
using FluentAssertions;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
using Moq;
|
||||
using ShowerMonitor.Models.Enums;
|
||||
using ShowerMonitorManager;
|
||||
using ShowerMonitorManager.Interface;
|
||||
@@ -31,7 +29,6 @@ public class ShowerDetectionServiceTests
|
||||
|
||||
return new ShowerDetectionService(
|
||||
calculator,
|
||||
Mock.Of<ILogger<ShowerDetectionService>>(),
|
||||
Options.Create(opts));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user