feat: migrate boiler control implementation to BoilerMonitor namespace and add budget handling logic
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using FluentAssertions;
|
||||
using BoilerMonitorManager.Models;
|
||||
|
||||
namespace BoilerMonitor.Manager.Tests;
|
||||
|
||||
public class BoilerMonitorOptionsTests
|
||||
{
|
||||
[Fact]
|
||||
public void Defaults_ShouldHaveEnabledTrue()
|
||||
{
|
||||
var options = new BoilerMonitorOptions();
|
||||
|
||||
options.Enabled.Should().BeTrue();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SectionName_ShouldBeBoilerMonitor()
|
||||
{
|
||||
BoilerMonitorOptions.SectionName.Should().Be("BoilerMonitor");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Enabled_WhenSetToFalse_ShouldReturnFalse()
|
||||
{
|
||||
var options = new BoilerMonitorOptions { Enabled = false };
|
||||
|
||||
options.Enabled.Should().BeFalse();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user