Clear the residual Qodana findings
- Drop the leftover unused using, parameter and date-time attribute reader - Merge the remaining enum guard into its pattern - Make the NordPool price DTO init-only - Replace the four non-serializable theory matrices with single tests that iterate the same rows, so xUnit can still report them - Replace Array.Empty with collection expressions and drop unused locals, redundant default arguments and duplicated tuple names - Throw from the unreachable shower default instead of an empty section - Cover the configurable PowerMonitor option overrides in a test so the init setters have a caller
This commit is contained in:
@@ -447,8 +447,8 @@ public class BoilerMonitorEntityServiceTests
|
||||
_entityManagerMock.Verify(em => em.SetEntityAttributes(WaterReadyEntityId, It.IsAny<object>()), Times.Once);
|
||||
}
|
||||
|
||||
public static TheoryData<string> UntouchedByTransientResetEntityIds => new()
|
||||
{
|
||||
public static TheoryData<string> UntouchedByTransientResetEntityIds =>
|
||||
[
|
||||
TodayRuntimeEntityId,
|
||||
SessionCountEntityId,
|
||||
BudgetPercentageEntityId,
|
||||
@@ -459,7 +459,7 @@ public class BoilerMonitorEntityServiceTests
|
||||
AutoManagementEntityId,
|
||||
ConfigPowerEntityId,
|
||||
ConfigSwitchEntityId
|
||||
};
|
||||
];
|
||||
|
||||
[Theory]
|
||||
[MemberData(nameof(UntouchedByTransientResetEntityIds))]
|
||||
|
||||
Reference in New Issue
Block a user